Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Addon: Quad Damage (Human)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 08-01-2011 , 04:50   Re: [ZP] Addon: Quad Damage (Human)
Reply With Quote #4

Quote:
Originally Posted by Excalibur.007 View Post
Nice

PHP Code:
switch(mode)
{
    case 
MODE_INFECTIONset_task(get_pcvar_float(cvar_spawntime), "CreateQuadEntity"TASK_QUAD_SPAWN)
    case 
MODE_MULTIset_task(get_pcvar_float(cvar_spawntime), "CreateQuadEntity"TASK_QUAD_SPAWN)    
    case 
MODE_PLAGUEset_task(get_pcvar_float(cvar_spawntime), "CreateQuadEntity"TASK_QUAD_SPAWN)
    case 
MODE_NEMESISset_task(get_pcvar_float(cvar_spawntime), "CreateQuadEntity"TASK_QUAD_SPAWN)
    case 
MODE_SWARMset_task(get_pcvar_float(cvar_spawntime), "CreateQuadEntity"TASK_QUAD_SPAWN)


PHP Code:
if(mode != MODE_SURVIVOR)
{
    
set_task(get_pcvar_float(cvar_spawntime), "CreateQuadEntity"TASK_QUAD_SPAWN)

Oww i though switch case is faster, gonna change later.

Quote:
Originally Posted by bibu View Post
+

#1 Is this needed in zp_user_infected_post?

PHP Code:
if(!id || !infector) return 
#2 Check in TakeDamage if attacker is a player. And this also not needed !pev_valid(victim).
PHP Code:
if(!id || !infector) return 
To prevent from an error log message by new zp4.3fix5, if it not necessary i can delete it.

PHP Code:
pev_valid(victim
Checking whether player is valid or not, for me this is useful in zp4.3, it can block from taking damage by world trigger damage (asid, lava, laserbeam) before round start & after round end.

For example you can watch this simple clip:
http://www.youtube.com/watch?v=akUFdbdZky8
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo 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 16:08.


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