Page 1 of 1

2 questions

Posted: Tue Mar 18, 2008 6:47 am
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.

Re: 2 questions

Posted: Tue Mar 18, 2008 7:27 am
by Penguin
#2: Yes, As long as no variables are changed.

Re: 2 questions

Posted: Tue Mar 18, 2008 7:29 am
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.

Re: 2 questions

Posted: Tue Mar 18, 2008 10:04 am
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.

Re: 2 questions

Posted: Tue Mar 18, 2008 4:43 pm
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.

Re: 2 questions

Posted: Tue Mar 18, 2008 4:48 pm
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.