Airstrike canisters


(creampuff) #1

I’ve been trying to create a “cluster bomb” type weapon where an airstrike canister throws out grenades after it comes to rest. I was combining the weapon_callAirStrike and weapon_grenadelauncher_fire code and having the new entity throw a grenade. The problem I have is the greade is thrown from the spot where the airstrike is thrown, not where the canister comes to rest.
I am not sure if I need to somehow capture the location of canister or what. I guess the problem is I don’t full understand the code and am just winging it. Any suggesstion would be helpful.


(Hewster) #2

have you tried creating your effect when the canister hits the ground,
rather than when it comes to rest ?

this post talks about the bounce flag
http://www.splashdamage.com/forums/viewtopic.php?t=424

I myself have made a grenade turn into a props_firecoloum by
doing this… so it may be a good place to start

I would have thought it would also be possible to do it when it comes to
rest, but havent done that myself, so can’t give any advise.

Hewster


(creampuff) #3

Thank cuz.


(creampuff) #4

EDIT

Figured it out. Instead of basing the start position on muzzleEffect, it should be base on ent->r.currentOrigin.