The Dink Network

Reply to Re: 2 more development qestions.

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:
 
 
April 7th 2011, 09:49 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Try to set sp_nohit() to 1 just before using hurt(). When nohit() is 0 and you use hurt(), it'll trigger hit() again, which can cause weird things to happen.

I don't think you want sp_nohit() to be 1 all the time, since then you could hit the building with ordinary fists, and it wouldn't make a punch sound, which would be rather weird.

Don't forget to set it back to 0 after the hurt() line.