Thread: [Subplugin Submission] [ZP] Extra Item: Antidote Laser v1.1
View Single Post
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 07-12-2009 , 04:45   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #10

Quote:
Originally Posted by tuty View Post
PHP Code:
engfunc(EngFunc_EmitSound
use

PHP Code:
emit_sound 
PHP Code:
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(27)
    
write_coord(origin[0]) // x
    
write_coord(origin[1]) // y
    
write_coord(origin[2]) // z
    
write_byte(40
    
write_byte(0// r
    
write_byte(128// g
    
write_byte(255// b
    
write_byte(100)
    
write_byte(10)
    
write_byte(1)
    
message_end()

    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(0)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(ofin[0])
    
write_coord(ofin[1])
    
write_coord(ofin[2])
    
write_short(laser
    
write_byte(5)
    
write_byte(5)
    
write_byte(3)
    
write_byte(25)
    
write_byte(5)
    
write_byte(0)
    
write_byte(128)
    
write_byte(255)
    
write_byte(100)
    
write_byte(200)
    
message_end()
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(14)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_byte(240)
    
write_byte(120)
    
write_byte(5
    
message_end() 
to

PHP Code:
   message_beginMSG_PVSSVC_TEMPENTITYorigin )
   
write_byte(TE_DLIGHT)
   
write_coord(origin[0]) // x
   
write_coord(origin[1]) // y
   
write_coord(origin[2]) // z
   
write_byte(40
   
write_byte(0// r
   
write_byte(128// g
   
write_byte(255// b
   
write_byte(100)
   
write_byte(10)
   
write_byte(1)
   
message_end()

    
message_begin(MSG_PVSSVC_TEMPENTITY)
    
write_byte(TE_BEAMPOINTS)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(ofin[0])
    
write_coord(ofin[1])
    
write_coord(ofin[2])
    
write_short(laser
    
write_byte(5)
    
write_byte(5)
    
write_byte(3)
    
write_byte(25)
    
write_byte(5)
    
write_byte(0)
    
write_byte(128)
    
write_byte(255)
    
write_byte(100)
    
write_byte(200)
    
message_end()
    
    
message_begin(MSG_PVSSVC_TEMPENTITYorigin)
    
write_byte(TE_IMPLOSION)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_byte(240)
    
write_byte(120)
    
write_byte(5
    
message_end() 
No. In Zombie Plague "emit_sound" function has no effect.

btw: all ready.
ILUSION is offline