Raised This Month: $ Target: $400
 0% 

Monster dies?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 01-08-2008 , 09:47   Re: Monster dies?
Reply With Quote #2

Well Monster_TakeDamage() is missing a parameter, the "inflictor" argument.

Shouldn't affect you, but try putting 0 instead of idattacker to be sure you can see any message appearing.

I assume monsters *are* a func_wall ?

You might aswell take out all the checks anyway, and dump all the input.

Something like:
Code:
public Monster_TakeDamage( this , idmonster , idinflictor, idattacker , Float:damage , damagebits ) {     new model[64] ;     pev(idmonster,pev_model,model,63) ;     client_print(0,print_chat,"Damage to ent %i (model: %s)",idmonster,model)     client_print(0,print_chat,"user: %i (inflictor: %i)",idattacker,idinflictor)     client_print(0,print_chat,"damage: %d (bits: %i)",damage,damagebits) }
purple_pixie is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode