The Dink Network

Re: Question re. sp_brain_parm

January 10th 2010, 03:24 AM
sob_scorpy.gif
DInkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
If the brain for a sprite is 17 (missile, no repeat), and I use the sp_brain_parm(); command, can I use it more than once to make multiple active sprites unhittable, or just one?
January 10th 2010, 05:33 AM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
Yes you can. But you need to know the sprite number of that sprite, like using globals.
Look in "item-sfb" from the main game. The Hellfire uses that on dink and it's shadow.
January 10th 2010, 07:13 AM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Well, twice actually. It's normally used for not damaging Dink or the shadow of the missile.
sp_brain_parm()
sp_brain_parm2()

A work-around would be to modify the damage script and check for whatever, then setting sp_strength to 0 if you don't want said object to be hurt by it.
January 10th 2010, 06:24 PM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
Ah, sp_brain_parm2() completely slipped my mind. Thank you, rabidwolf. you too, IPD.