Jump to content


Photo

Adding a Flamethrower


  • Please log in to reply
3 replies to this topic

#1 Allied General

Allied General

    C&C Guild

  • Hosted
  • 6,922 posts
  • Location:United Kingdom
  • Projects:AGSA
  •  Modder

Posted 29 September 2007 - 06:20 PM

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.

[FThrower]
Damage=60
ROF=60
Range=4
Projectile=FlameFire
Speed=13
Burst=1
Warhead=FLAMEWH
Report=ExplosionApocalypse
Anim=S_BANG16
Bright=yes

This code essentially uses a invisible projectile which has a flame trailer

[FlameFire]
Image=BURN
Shadow=no
Arm=2
SubjectToCliffs=yes
SubjectToElevation=yes
SubjectToWalls=yes
ROT=1
CourseLockDuration=-2 ; travel in straight line (code is adapted from medusa weapon code)
Proximity=yes
Ranged=yes

[FLAMEWH]
CellSpread=1
PercentAtMax=.4
Wall=no
Wood=yes
Verses=200%,200%,80%,60%,45%,30%,35%,15%,15%,30%,60%
Conventional=no
Fire=yes
InfDeath=4
AnimList=BURNEXP
ProneDamage=100%
Bullets=yes

[BURN]
Trailer=BTRAIL

[BTRAIL]
Normalized=yes
Translucent=yes
Translucency=80
Report=ExplosionShard
UseNormalLight=yes

[BURN] ; Flames fireball
Trailer=BTRAIL ;BURNTR

[BTRAIL]
Normalized=yes
Translucent=yes
Translucency=80
Report=ExplosionShard
UseNormalLight=yes

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

Attached Files

  • Attached File  hot.zip   14.09KB   504 downloads

Edited by Allied General, 04 April 2008 - 12:55 PM.
Sparky update

Posted Image

#2 SSTG

SSTG

    alive again!

  • Hosted
  • 1,270 posts
  • Location:NZ
  • Projects:might just go back to voxeling
  •  just voxeling stuff

Posted 29 September 2007 - 11:53 PM

Does this work for the TS flame animation? from the flame tank or would I need a flame animation that doesn't go around in a 180 degree animation

EDIT wait nvm I'll try that attachment :)

Edited by SSTG, 30 September 2007 - 01:33 PM.

Posted Image
Posted Image
Posted Image

#3 imarafan

imarafan
  • Members
  • 148 posts
  • Location:green o.o
  • Projects:c&c metropolis (the name may change)
  •  Holas the cat

Posted 02 October 2007 - 12:55 PM

HOLAS: ™

going to try this at home... i use to have so much troubles with flames.... thanks ;)
i are a cat full of HOLAS..... delivering HOLAS to the world o.o

#4 Medusa

Medusa

    the g-man

  • Members
  • 253 posts
  • Location:The Republic of China
  • Projects:none
  •  Misc modder

Posted 03 October 2007 - 04:13 AM

Also I might add there is a tutorial on project perfect mod... http://www.ppmsite.c...opic.php?t=8349
They shall perish...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users