The Dink Network

Reply to Re: Bookshelf

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
October 30th 2012, 01:23 PM
spike.gif
This needs testing to be certain, but according to the reference it seems in the case of a missile enemy_sprite actually equals 1 whoever fired it.

That's correct. Luckily, there is a simple way to get the correct sprite by checking sp_brain_parm, since every missile in Original Dink stores the sprite who launches the missile with it. (Problems will only arise if the dmod author changes this convention)

e.g.
int &culprit = sp_brain_parm(&missle_source,-1)
sp_target(&current_sprite,&culprit)