Page 1 of 1
Poison Grenade [Solved]
Posted: Wed Aug 01, 2012 8:15 pm
by Dreadnot9
Hey all, I'm trying to setup a poison grenade that actually poisons people (using similar properties as the poison buff that shipped with the mod tools). I'm doing this by having it mimmick an orbital strike beacon. So it'd go something like: 1) throw beacon, 2) Beacon lands/sticks to something, 3) beacon calls for buff ordnance, 4) troopers die.
I've got part 1 and 2 to work swimmingly so far, however there part three seems to be causing issues. I'll throw the beacon like a grenade, and the grenade will disappear shortly thereafter, but no buff
Grenade ODF:
cis_weap_inf_gasgrenade_ord.odf:
cis_weap_inf_gasgrenade_salvo_exp.odf
And yes, I have tried the autoturret method (see this topic:
http://www.gametoast.com/forums/viewtop ... 27&t=13743) for getting effect nades to work. I've never really got this working, plus this prohibits other autoturrets from being on the battlefield at the same time. I also have a feeling this way will work. Any help is appreciated.
Re: Poison Grenade
Posted: Wed Aug 01, 2012 8:30 pm
by razac920
I don't know so much about orbital strikes but I will say that I would probably use LUA scripting to get the effect you want. Something along the lines of:
OnObjectDamage(function(object,damager)
if GetObjectLastHitWeaponClass(object) == [grenade odf class name] then
... damaging poison code ...
end
end)
Re: Poison Grenade
Posted: Wed Aug 01, 2012 8:35 pm
by Dreadnot9
That would surely work, but I'd prefer to get it working through ODF coding (this is going into a side mode with several scripts, I'd rather make one semi-complicated ODF-set than go through each script and add those lines in). Thank you though, I'll keep that in mind if I can't get anything else working.
Re: Poison Grenade
Posted: Wed Aug 01, 2012 9:27 pm
by razac920
Try adding PlayEffectOnOwner = "com_sfx_buff_poison" to cis_weap_inf_gasgrenade_salvo_exp.odf
I think you'll find that the poison buff comes from your unit, not the beacon...
Re: Poison Grenade
Posted: Wed Aug 01, 2012 9:49 pm
by Dreadnot9
razac920 wrote:Try adding PlayEffectOnOwner = "com_sfx_buff_poison" to cis_weap_inf_gasgrenade_salvo_exp.odf
I think you'll find that the poison buff comes from your unit, not the beacon...
You are indeed correct, the beacon would be thrown, then the poison "wave" would come from my unit (although no damage was done weather the opponents were close to me or the beacon). It's highly possible only units can initiate area effect buffs, which is unfortunate. I wonder how mav did it in Dark times. I suppose I could try the autoturret method again (or your suggested lua work around) and see what kind of results that produces.
Re: Poison Grenade
Posted: Wed Aug 01, 2012 9:53 pm
by willinator
In Dark Times the grenades don't act like the buff. They reduce your health until the grenade explosion finishes. The poison doesn't last nearly as long as the Magnaguard's buff.
Re: Poison Grenade
Posted: Wed Aug 01, 2012 9:59 pm
by razac920
Another thing is that in the regular orbital strike, the bolts are fired directly downward from an incredible height, and then continue going down to hit beacon. Perhaps with this poison wave it too is fired from that same great height, in which case you wouldn't be able to tell unless the radius was REALLY HUGE. Of course, if it is indeed spherical, you could arrange it such that the gigantic sphere-in-the-sky just barely grazes the ground, and get *roughly* what you want. It might not work indoors though, do normal buffs penetrate walls?
Re: Poison Grenade
Posted: Wed Aug 01, 2012 10:07 pm
by Dreadnot9
willinator wrote:In Dark Times the grenades don't act like the buff. They reduce your health until the grenade explosion finishes. The poison doesn't last nearly as long as the Magnaguard's buff.
Hmm, I'll try that out then. After I extend the explosion duration what lines should I add to do the gradual damage (I'm away from my modding pc at the moment, and can't look through any assets to find out for myself)?
razac920 wrote:Another thing is that in the regular orbital strike, the bolts are fired directly downward from an incredible height, and then continue going down to hit beacon. Perhaps with this poison wave it too is fired from that same great height, in which case you wouldn't be able to tell unless the radius was REALLY HUGE. Of course, if it is indeed spherical, you could arrange it such that the gigantic sphere-in-the-sky just barely grazes the ground, and get *roughly* what you want. It might not work indoors though, do normal buffs penetrate walls?
You're right about the orbital strikes, even if the buff played, I'd have to have (as you said) a huge effect radius. I don't
think buffs penetrate walls, but I've been wrong before.
Re: Poison Grenade
Posted: Wed Aug 01, 2012 10:23 pm
by Maveritchell
You don't need to use buff effects at all (although you certainly can). Emitterordnances (the go-to invisible ordnance) support DoT with smolder damage.
Re: Poison Grenade
Posted: Wed Aug 01, 2012 10:25 pm
by THEWULFMAN
Usually I'd just tell you how to do it, but I'm really busy right now. So you can just take the ODF assets and edit them yourself. PM sent.
Ninja'd by Mav.

Re: Poison Grenade
Posted: Wed Aug 01, 2012 10:36 pm
by Dreadnot9
Maveritchell wrote:You don't need to use buff effects at all (although you certainly can). Emitterordnances (the go-to invisible ordnance) support DoT with smolder damage.
THEWULFMAN wrote:Usually I'd just tell you how to do it, but I'm really busy right now. So you can just take the ODF assets and edit them yourself. PM sent.
Thank you, both of you! It's greatly appreciated.