2 questions

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

2 questions

Post by Silas »

is it possible to make a weapon that hurts you a little bit when you use it? im going for a force power that is very useful, but it hurts slightly any time you use it.

also, is it possible to create custom skins for units that work with multiplayer in regular maps (the idea being clan skins or something)?

the second question is mostly out of curiosity, but the first i need answered soon.
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Re: 2 questions

Post by Penguin »

#2: Yes, As long as no variables are changed.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: 2 questions

Post by Teancum »

Weapons aren't my specialty, so I can't really answer the first one. I can tell you the second one's not possible without editing LUA scripts (which would break online compatibility) or replacing the original shipped side (like how mods such as BFX do). Replacing a shipped side will only change what is seen on your machine though. If someone else still has the original side they won't see your custom skins.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: 2 questions

Post by Maveritchell »

The first one's possible, but it's an ugly solution(s). You can either make a weapon that has a double ordnance and make the second ordnance a negative health buff that affects your team, but for that to work you'll need to:
a) have team attack on
b) have at least one other friendly unit in range, and
c) have it damage at least one other friendly.

Another option is setting up some scripting that does damage to the user of a specific weapon whenever that weapon hits an enemy unit, but that could get tricky quickly if the weapon is a very powerful weapon. If I recall correctly, you might have issues identifying a weapon being used on a unit if the unit in question is killed.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: 2 questions

Post by woner11 »

I thought number one was very simple. Add this line in your exp file:

Code: Select all

HurtOwner 		= 1 
I beleive the value is one.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: 2 questions

Post by Maveritchell »

woner11 wrote:I thought number one was very simple. Add this line in your exp file:

Code: Select all

HurtOwner 		= 1 
I beleive the value is one.
You can do whatever you want with explosions, but that's all they are, explosions, not ordnances. If you want to hurt yourself with one, team attack still has to be on and you'll do the same amount of damage to yourself that you're dealing out and it's limited to whenever the thing explodes (meaning it has to be a fairly short-range weapon or it has to have an unbelieveably large explosion radius). It's an even messier solution.
Post Reply