Raised This Month: $32 Target: $400
 8% 

[ZP] Addon: Survivor Tracers


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eXacT
Veteran Member
Join Date: Apr 2009
Location: Buenos Aires
Old 12-03-2009 , 15:17   [ZP] Addon: Survivor Tracers
Reply With Quote #1

[ZP] Addon: Survivor Tracers
by eXacT


Description: It is a litte plugin who gives to the survivors, a little effect, yellow tracers emerging from the body.

Cvars:
"zp_survivor_tracers_enabled", "1" // Enable/disable the tracers in survivor
"zp_survivor_tracers_time", "0.1" // in this time the tracers apears on the survivor


Required:
amxmodx -- Module
fakemeta -- Module
zombie plague -- Main Plugin
zombieplague -- Include

Credits:
meTaLiCroSS - He helped me to fix some code
IneedHelp - I extracted some code from his SuperPlayer

SnapShot:

[IMG]http://img690.**************/img690/3254/dedust20000za.png[/IMG]

PHP Code:
#include <amxmodx>
#include <fakemeta> 
#include <zombieplague>

#define TASK_TRACER 27777

new PLUG[] = "[ZP] Addon: Survivor Tracers"
new VERS[] = "1.4"
new AUTH[] = "eXacT"

new gCvarEnabledgCvarTracersTime

public plugin_init() 
{
    
// Pugin Info
    
register_plugin(PLUGVERSAUTH)
    
    
// Cvars
    
gCvarEnabled register_cvar("zp_survivor_tracers_enabled""1")
    
gCvarTracersTime register_cvar("zp_survivor_tracers_time""0.1")
}

public 
zp_user_humanized_post(id)
{
    
// Cvar is disabled or isn't survivor round
    
if (!get_pcvar_num(gCvarEnabled) || !zp_is_survivor_round())
        return;
        
    if(
zp_get_user_survivor(id))
    {
        
set_task(get_pcvar_float(gCvarTracersTime), "GiveTracers"id+TASK_TRACER__"b")
    }
}  

public 
GiveTracers(id)
{
    
id -= TASK_TRACER
    
    
if(!is_user_alive(id) || !zp_get_user_survivor(id) || zp_get_user_zombie(id))
    {
        
remove_task(id+TASK_TRACER)
        return;
    }
    
    new 
Float:Origin[3]
    
pev(idpev_originOrigin)
    
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYOrigin0)
    
write_byte(TE_IMPLOSION)
    
engfunc(EngFunc_WriteCoordOrigin[0]) 
    
engfunc(EngFunc_WriteCoordOrigin[1]) 
    
engfunc(EngFunc_WriteCoordOrigin[2]) 
    
write_byte(128
    
write_byte(20
    
write_byte(3
    
message_end()

Changelog:
Code:
v1.2 - Public Relase
v1.3 - Added Enable/disable Cvar
v1.4 - Tracers will be enabled in Survivor Mode Only
Attached Files
File Type: sma Get Plugin or Get Source (zp_addon_survivor_tracers.sma - 917 views - 1.4 KB)
__________________

"There is no knowledge, that is not power"

Last edited by eXacT; 01-28-2010 at 08:25. Reason: i forgot the plugin xD
eXacT is offline
Send a message via MSN to eXacT Send a message via Skype™ to eXacT
edduard
Junior Member
Join Date: Sep 2009
Old 12-03-2009 , 17:16   Re: [ZP] Addon: Survivor Tracers
Reply With Quote #2

Snapshot?
edduard is offline
eXacT
Veteran Member
Join Date: Apr 2009
Location: Buenos Aires
Old 12-03-2009 , 21:35   Re: [ZP] Addon: Survivor Tracers
Reply With Quote #3

tomorrow, i will upload a screenshot =)
__________________

"There is no knowledge, that is not power"
eXacT is offline
Send a message via MSN to eXacT Send a message via Skype™ to eXacT
eXacT
Veteran Member
Join Date: Apr 2009
Location: Buenos Aires
Old 01-24-2010 , 03:36   Re: [ZP] Addon: Survivor Tracers
Reply With Quote #4

added snapshot
__________________

"There is no knowledge, that is not power"
eXacT is offline
Send a message via MSN to eXacT Send a message via Skype™ to eXacT
Jamaika
Junior Member
Join Date: Oct 2009
Location: Lithuania
Old 01-24-2010 , 03:40   Re: [ZP] Addon: Survivor Tracers
Reply With Quote #5

Looks intresting .
Jamaika is offline
Send a message via Skype™ to Jamaika
4eRT
Senior Member
Join Date: Jan 2009
Location: Russia, Saint-Petersburg
Old 01-24-2010 , 09:33   Re: [ZP] Addon: Survivor Tracers
Reply With Quote #6

Cool effect ;) thx
__________________
Not interested in CStrike modding anymore, but waht a HELL ?!
I am still 61% addicted to Counterstrike! What about you?
4eRT is offline
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 01-24-2010 , 09:46   Re: [ZP] Addon: Survivor Tracers
Reply With Quote #7

Great job!
Good replacement of GLOW.
__________________



Last edited by SpILL; 01-24-2010 at 09:50.
SpILL is offline
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 01-24-2010 , 09:49   Re: [ZP] Addon: Survivor Tracers
Reply With Quote #8

gj !
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
Old 01-24-2010, 09:50
SpILL
This message has been deleted by SpILL.
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 01-24-2010 , 15:25   Re: [ZP] Addon: Survivor Tracers
Reply With Quote #9

i bet this laggs the server like hell
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
eXacT
Veteran Member
Join Date: Apr 2009
Location: Buenos Aires
Old 01-25-2010 , 09:52   Re: [ZP] Addon: Survivor Tracers
Reply With Quote #10

Quote:
Originally Posted by georgik57 View Post
i bet this laggs the server like hell
1- one survivor whit tracers isnt laggy

2- various survivors, whit the same effects, this is LAGGY, but one no :\

like in mode survivor, or plague, anohter mod created by user, is not supported
__________________

"There is no knowledge, that is not power"
eXacT is offline
Send a message via MSN to eXacT Send a message via Skype™ to eXacT
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:01.


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