I am wondering if anyone has any workable poison gas code , I found this code over at the old ssm site
Code: Select all
rem *** Gas Grenade ***
ObjectTemplate.Active SmokeGrenadeProjectile
ObjectTemplate.addTemplate hanomagVehicleSupplyDepot
ObjectTemplate.Active hanomagVehicleSupplyDepot
ObjectTemplate.radius 10
ObjectTemplate.team 0
ObjectTemplate.setHealth 20 -1.5 0
ObjectTemplate.workOnVehicles 0
ObjectTemplate.workOnSoldiers 1
The thing with that code is that the deathbubble remains long after the smoke grenade times out. What im trying to do is have the mortar fire the smoke grenades as a projectile so basically lobbing poison gas canisters into bases ect. Now when I add that code to the mortar as such the death bubble dies as soon as the mortar launcher blows up after timing out.
Code: Select all
ObjectTemplate.Active Mortar_fire
ObjectTemplate.projectileTemplate SmokeGrenadeProjectile
ObjectTemplate.Active SmokeGrenadeProjectile
ObjectTemplate.addTemplate hanomagVehicleSupplyDepot
ObjectTemplate.Active hanomagVehicleSupplyDepot
ObjectTemplate.radius 10
ObjectTemplate.team 0
ObjectTemplate.setHealth 20 -1.5 0
I then thought I would just import the DCX gasgrenade projectile but ended up with a " Indefinitive time Tolive Error " that I could not solve

, Anyways Im not happy with the deathbubble staying after the smoke grenade disappears so I was wondering if anyone has any Ideas or has found a fix to this issue. Urglub seemed to have a great idea by attaching the deathbubble directly to the smoke effects as such ,
Code: Select all
ObjectTemplate.Active e_SmokeGrenade
ObjectTemplate.timeToLive CRD_NONE/20/0/0
ObjectTemplate.addTemplate hanomagVehicleSupplyDepot
ObjectTemplate.workOnVehicles 0
ObjectTemplate.workOnSoldiers 1
This would have solved my problem perfectly but this code does not seem to work at all, Im determined to get this working properly and need help, thanks
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."