Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Extra Item: Antidote Laser v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 07-12-2009 , 04:45   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #1

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
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 07-12-2009 , 05:27   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #2

emit_sound and EngFunc_EmitSound is practictly the same thing.

Quote:
Originally Posted by Starsailor View Post
PHP Code:
shots register_cvar("zp_tiros_laser""3"
---->

PHP Code:
shots register_cvar("zp_laser_shoots""3"
Like Xellath said, english is more appropriate in this community
So, this is what english looks like?


zp_laser_shots|bullets
__________________
Achievements API - a simple way for you to create your OWN custom achievements!

Last edited by Xellath; 07-12-2009 at 05:30.
Xellath is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 07-12-2009 , 07:02   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #3

what do you mean has no effect, is an default amxx native...lol?
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 07-12-2009 , 18:05   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #4

Quote:
Originally Posted by tuty View Post
what do you mean has no effect, is an default amxx native...lol?
When I test in Zombie Plague has no effect. And if I test in non Zombie Plague has effect o.O
ILUSION is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 07-12-2009 , 18:16   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #5

EngFunc_EmitSound is only the fakemeta equivalent of emit_sound.
I don't know which is more efficient though.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!

Last edited by Xellath; 07-12-2009 at 18:45.
Xellath is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 07-12-2009 , 18:33   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #6

Quote:
Originally Posted by Xellath View Post
EngFunc_EmitSound is only the fakemeta equivalent of emit_sound(from engine). I don't know which is more efficient though.

from engine? take a look boy http://www.amxmodx.org/funcwiki.php?...ound&go=search
__________________

Last edited by tuty; 07-12-2009 at 18:38.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 07-12-2009 , 18:46   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #7

I didn't even bother checking that, I just assumed that emit_sound was from engine. I am sure that I saw that somewhere.. I could be wrong though.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 07-13-2009 , 03:14   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #8

Quote:
Originally Posted by Xellath View Post
emit_sound and EngFunc_EmitSound are practically the same thing.



So, this is what english looks like?


zp_laser_shots|bullets
If you are going to correct other people's English then at least make sure that your own is decent.

*hopes that this won't cause a chain reaction*
__________________

Last edited by DarkGod; 07-13-2009 at 03:23.
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 07-13-2009 , 04:03   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #9

Quote:
Originally Posted by DarkGod View Post
If you are going to correct other people's English then at least make sure that your own is decent.

*hopes that this won't cause a chain reaction*
Haha, we all make mistakes, don't we?
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
[-X-ViSi0N]
Member
Join Date: Jul 2009
Old 07-15-2009 , 03:39   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #10

man, I can't download the zip...

The Compresser (zipped) folder 'C:\....\zp_laser.zip is invalid
[-X-ViSi0N] is offline
Reply



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 16:51.


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