Raised This Month: $ Target: $400
 0% 

[ZP] Zombie Class : Iron Zombie [v1.9] - 2/2/10


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-13-2009 , 22:10   [ZP] Zombie Class : Iron Zombie [v1.9] - 2/2/10
Reply With Quote #1

[ZP] Zombie Class : Iron Zombie

Description:
Takes lesser damage(Depends on cvar)

Modules needed:
Code:
Hamsandwich
Cvars:
Code:
zp_iron_dmg_multiplier 0.75 | Amount of damage Iron Zombie should take( IN % ) e.g. If damage is 10 and CVar is 0.5, Iron Zombie will only take 5 damage.
zp_iron_play_sound 1 | Plays a sound when attacked
Changelog:
Code:
v1.0 - Intial release.
v1.1 - Bug fix: Check if user is not alive, not mirror zombie, is a nemesis or a survivor
v1.2 - Features: Added CVars
v1.3 - Optimized Code
v1.4 - Feature: Added glow when damaged
v1.5 - Optimized code(Thanks meTaLiCroSS)
v1.6 - Bug fix: All zombie has the damage glow effect
v1.7 - Change damage event to Ham_TakeDamage(More efficient)(Thanks meTaLiCroSS)
     - Change to amount of damage by %
     - Fix: get_pcvar_num ---> get_pcvar_float
v1.8 - Major Bug Fix: Whole plugin doesn't work
     - Feature: Iron Zombie damage resist(Damage lesser|equal will not damage iron zombie)
     - Remove % damage as it is very buggy
     - Fix that all zombie class has glow
v1.9 - Rewritten code
     - Change to percent damage
     - Added sound when hit( CS default helmet hit sound )
Attached Files
File Type: sma Get Plugin or Get Source (zp_zclass_iron.sma - 1035 views - 3.1 KB)

Last edited by Excalibur.007; 02-03-2010 at 02:29. Reason: Better description for zp_iron_dmg_multiplier in .sma file
Excalibur.007 is offline
DarkSkif
Member
Join Date: Oct 2009
Location: Russia
Old 12-14-2009 , 03:30   Re: [ZP] Class : Iron Zombie [v1.4]
Reply With Quote #2

Thanks!
DarkSkif is offline
DangerSpirit
Member
Join Date: Nov 2009
Location: Slovakia
Old 12-14-2009 , 04:21   Re: [ZP] Class : Iron Zombie [v1.4]
Reply With Quote #3

Amxx file can be downloaded on Reupload please
DangerSpirit is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-14-2009 , 06:22   Re: [ZP] Class : Iron Zombie [v1.4]
Reply With Quote #4

amxmodx.org compiler doesn't have zombieplague include. Compile it locally.
Excalibur.007 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-14-2009 , 09:50   Re: [ZP] Class : Iron Zombie [v1.4]
Reply With Quote #5

Quote:
Originally Posted by DangerSpirit View Post
Amxx file can be downloaded on Reupload please
If you don't know how to compile locally, use this link http://forums.supercentral.net/compi...6&ver=amxx-181
This will only work as long as the OP doesn't update his attachment.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
superang
Senior Member
Join Date: Apr 2009
Location: Portugal
Old 12-15-2009 , 17:17   Re: [ZP] Class : Iron Zombie [v1.4]
Reply With Quote #6

i think that you should put like
zp_iron_dmg 1.0 // Amount of damage to be reduced
__________________
superang is offline
Send a message via MSN to superang
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-15-2009 , 19:21   Re: [ZP] Class : Iron Zombie [v1.4]
Reply With Quote #7

Float won't work in here(Tag mismatch)
Excalibur.007 is offline
I0ri
Senior Member
Join Date: Feb 2009
Old 12-16-2009 , 05:34   Re: [ZP] Class : Iron Zombie [v1.4]
Reply With Quote #8

omg!! thx!!!
__________________
I0ri is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 12-16-2009 , 10:03   Re: [ZP] Class : Iron Zombie [v1.4]
Reply With Quote #9

  1. [ZP] Zombie Class: Iron Zombie
  2. This plugin uses the worst method to get minor damage.
  3. The array "g_hasIron" is useless. You can detect the zombie class instead to use the var.
  4. PHP Code:
        g_zclass_glow_r register_cvar("zp_mirror_glow_r""192"// Red
        
    g_zclass_glow_g register_cvar("zp_mirror_glow_g""192"// Green
        
    g_zclass_glow_b register_cvar("zp_mirror_glow_b""192"// Blue 
    zp_mirror_glow_* ?
  5. Is stupid detect if a Survivor is infected in post, Survivors aren't survivors in post.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-16-2009 , 21:01   Re: [ZP] Class : Iron Zombie [v1.4]
Reply With Quote #10

oops I'll fix it thanks.
EDIT: meTaLiCroSS thanks very much finishing soon for number 2, any better method? I only knew this for now. Please give me a more efficient method.
EDIT2:
1. DONE
2. DONE
3. DONE
4. DONE
5. DONE

EDIT3: Is Ham_TakeDamage in here a better method meTaLiCroSS?

Last edited by Excalibur.007; 12-18-2009 at 01:31.
Excalibur.007 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 14:00.


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