AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP] Extra Item: Energy Suit [v. 1.5] (https://forums.alliedmods.net/showthread.php?t=142754)

DjReactive 11-09-2010 11:06

[ZP] Extra Item: Energy Suit [v. 1.5]
 
3 Attachment(s)
Energy Suit - 3 Multimodes


This Last Version: 1.5

Discription:
Adds the Energetichsky suit for people (as in game CRYSIS) which has 3 modes, and energy which this suit eats.
To change a mode, it is necessary to press "Е" to include/switch off that, or other mode needs to be pressed F1. All modes are written on the screen. When you activate a mode (button F1) at you energy will decrease not to lose superfluous energy deactivate a mode repeated pressing F1. Sounds adjust
Sorry, bad English.

Cvars:
Quote:

enzp_extra_packs 10 // How many Energy is given at suit purchase
enzp_regen_energy 1 // On / off energy regeneration?
enzp_regen_time 3.0 // How many seconds will be regeneration 1 Energy
enzp_energy_time 1.0 // When the mode is activated, everyone Х second will get опред. An energy quantity (depends from квара modes)
enzp_invisible_packs 1 // during Х (that above) energy will be spent for invisibility How many
enzp_speed_packs 1 // energy during Х (that above) for the Speed will be spent How many
enzp_speed_added 1000.0 // How many Will be speed if the mode "Extra Speed" is activated
enzp_godmone_packs 2 // during Х (that above) energy will be spent for Invulnerability How many
enzp_godmode_glow 1 // to Give illumination during invulnerability
enzp_max_packs 50 // the Maximum quantity of energy which you can have.
enzp_timelimit 3.0 // Time after which it will be possible to activate any mode again. (Type a mode recharge)
Screens:


Credits:
Re.Act!ve - Created Plugin

Changelog:
Quote:

v. 1.0 - First Plugin Released
v. 1.1 - Fixed bug on speed ability
v. 1.2 - Fixed Bugs of Energy Packs.
v. 1.3 - Full replaced code, & added Regeneration Energy
v. 1.4 - Fixed Speed bug, and Extra Item Remains until then while you won't infect

georgik57 11-09-2010 11:09

Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
 
nice

Kiryu Zero 11-09-2010 11:19

Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
 
suitable for ZPA?

DjReactive 11-09-2010 11:22

Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
 
Excuse, don't know. I tested on ZP 4.3

Kiryu Zero 11-09-2010 11:28

Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
 
And the files are downloaded to it??




don t work in ZPA

abdul-rehman 11-09-2010 12:38

Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
 
You dont need to reset the speed here:
Code:
set_pev( id, pev_maxspeed, fm_get_user_maxspeed(id))

and here you can use a switch
Code:
if(g_Number[id] == 0)         client_print(id, print_center, "[Chosen Mode: Invisible]")         if(g_Number[id] == 1)         client_print(id, print_center, "[Chosen Mode: Extra Speed]")         if(g_Number[id] == 2)         client_print(id, print_center, "[Chosen Mode: GodMode]")         if(g_Number[id] == 3)         {             client_print(id, print_center, "[Chosen Mode: Invisible]")              g_Number[id] = 0;         }

To detect if the user pressed a button or not, its better to use FM_CmdStart bcoz it is called the right time (i.e when the user presses any button)

And plz remove this
Code:
replace_all(msg, 190, "!t2", "^0") // Team2 Color
From the color chat funciton becoz in reality it isnt supposed to work and is actually used to zero terminate the string !

albert123 11-10-2010 04:53

Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
 
Oh man, include god mode.

DjReactive 11-15-2010 09:31

Re: [ZP] Extra Item: Energy Suit [v.1.4 Update]
 
New fixed version.

georgik57 11-16-2010 05:48

Re: [ZP] Extra Item: Energy Suit [v.1.4 Update]
 
reupload the screens pls

DjReactive 11-25-2010 10:58

Re: [ZP] Extra Item: Energy Suit [v. 1.5]
 
Added Screen & Fixed version


All times are GMT -4. The time now is 15:39.

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