Some questions on weapons

Some questions on weapons

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Abokasee
Posts: 222
Joined: 03 Nov 2006, 21:51

Some questions on weapons

Post by Abokasee »

Is it possible to have a weapon capable of paralyzing certain units and is it possible to have a weapon explode in the air? (like a air burst)
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname »

Both are possible.

Paralysis is linked to the damage section, so if a paralysis weapon's damage section has (for example) Commanders=0.00000001; then it would not paralyse commanders - though a better way of doing that is using that immunetoparalysis tag (or whatever it's called).

Weapons can be set to explode at their max range using a tag whose name eludes me (burnlow or something). I use it for Hydra Flak batteries
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

burnblow=1;
Only works for plasma though.
User avatar
Abokasee
Posts: 222
Joined: 03 Nov 2006, 21:51

Post by Abokasee »

Thank you,

But when I was talking about the paralyzing I meant it damages (or kills in my case) one type of unit, but paralyzes anything else
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

Use slaved weapons with complementary custom damage?
User avatar
Abokasee
Posts: 222
Joined: 03 Nov 2006, 21:51

Post by Abokasee »

Sorry, I dont understand
User avatar
Abokasee
Posts: 222
Joined: 03 Nov 2006, 21:51

Post by Abokasee »

Oh, I got a slight problem with making the packo a anti-nuke It dosnt open up, the anti-nuke just explodes inside
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Look at the way the antinukes are coded and replicate that? Though I think AN aiming should work like regular aiming because I once made the antinukes capable of shooting normal units in OTA...
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

Abokasee wrote:Sorry, I dont understand
Spring 0.63b1 changelog wrote:new fbi tag WeaponSlaveTo<x>=y, this will force the weapon x to use the same target as weapon y (y must be a lower numbered weapon than x). Might be usefull for say a mech like unit with many different weapons that should target in the same direction.
With that, hopefully, you can make two weapons, one that paralyse, one that attack, that act like one.
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname »

A better way of doing that would be to force-fire a second weapon in the script when the paralyzer is fired. The second weapon would be set to only damage the unit you want it to hurt. Note: Won't work too well if the emp weapon is innacurate
Post Reply

Return to “Game Development”