Raised This Month: $ Target: $400
 0% 

[help]fw_TakeDamage + screen fade


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-17-2010 , 16:20   [help]fw_TakeDamage + screen fade
Reply With Quote #1

oliki want to add screen fade to attacker, but i dont know where to add it?
tried many ways, but i got unreachable code error

PHP Code:
 if ((get_user_weapon(attacker) == CSW_M3) && (damage == 643.0 || damage == 649.0 || damage == 630.0))
  return 
HAM_SUPERCEDE;
 
 return 
HAM_IGNORED;

and here is the screen fade
PHP Code:
  message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, attacker)
  
write_short(1<<12)
  
write_short(1<<12)
  
write_short(0x0000)
  
write_byte (255)
  
write_byte (0)
  
write_byte (0)
  
write_byte (100)
  
message_end() 

edit: already found what was i loking for,
thanks anyway.
Lock

Last edited by OvidiuS; 08-17-2010 at 19:43.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
 



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 21:54.


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