Adding a Flamethrower
|
|
Basic code is from SuperNova mod which is free to download from YRArgentina and use as long as the mod and Napalm be credited.
I'm gonna plug in some code for you as anyone reading this should know basic weapon coding. Figures such as Damage etc can be altered but due to projectile nature, keep range low.
This code essentially uses a invisible projectile which has a flame trailer
The basic logic is that the projectile is invisible but has a trailer which resembles the flame trail.
You can add damage to the trailer by Damage= but this may damage the unit which fired it.
Note for the flame explosion to appear you need to add it to the end of the [Animations] and as a general rule and good pratice (once u have multiple things) add your new warhead to end of [Warheads] as well
Do not use particle flame systems like in TS because
1. Unit gains no experience
2. Hard to balance damage (e.g. shit weapon or overpowered)
3. Hurts allies as well.
Finally Ambient damage only works with
1) railguns
2) sonic weapons
3) firestream
Sparky logic can be used but at least three anims must be stated on OnFire= statment
I'm gonna plug in some code for you as anyone reading this should know basic weapon coding. Figures such as Damage etc can be altered but due to projectile nature, keep range low.
Code |
[FThrower] |
This code essentially uses a invisible projectile which has a flame trailer
Code |
[FlameFire] |
Code |
[BURN] |
The basic logic is that the projectile is invisible but has a trailer which resembles the flame trail.
You can add damage to the trailer by Damage= but this may damage the unit which fired it.
Note for the flame explosion to appear you need to add it to the end of the [Animations] and as a general rule and good pratice (once u have multiple things) add your new warhead to end of [Warheads] as well
Do not use particle flame systems like in TS because
1. Unit gains no experience
2. Hard to balance damage (e.g. shit weapon or overpowered)
3. Hurts allies as well.
Finally Ambient damage only works with
1) railguns
2) sonic weapons
3) firestream
Sparky logic can be used but at least three anims must be stated on OnFire= statment
Links / Downloads
Hits | Added | |
---|---|---|
hot.zip | 2389 | July 29, 2009 - 3:20 |
Credits
Original Material | Napalm |