Thread: TESS-One
View Single Post
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 03-16-2009 , 02:01   Re: Hero: TESS-One
Reply With Quote #14

Why did you do it the wrong after you asked if the example you posted above was correct?


The parameter is a hero id (int) not a hero name (string).
g_HeroName is wrong:
Code:
        sh_chat_message(id, g_HeroName, "Absorbing bullets for %d seconds", g_TessTimer[id])
Correct usage would be as you posted above.

---------------
Also, sorry but I was wrong. HAM_SUPERCEDE is correct for how you used it. I did not realize HAM_HANDLED does not actually block the call, though it would probably be better to SetHamParamFloat(4, 0.0) then return HAM_HANDLED.

Last edited by vittu; 03-16-2009 at 03:46.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu