Raised This Month: $ Target: $400
 0% 

[ZP] Extra Item: Energy Suit [v. 1.5]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DjReactive
Member
Join Date: Sep 2010
Location: Russia
Old 11-09-2010 , 11:06   [ZP] Extra Item: Energy Suit [v. 1.5]
Reply With Quote #1

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
Attached Thumbnails
Click image for larger version

Name:	energy_suit1.5.JPG
Views:	7460
Size:	10.5 KB
ID:	77959  
Attached Files
File Type: txt zp_extra_energy_suit.txt (799 Bytes, 1236 views)
File Type: sma Get Plugin or Get Source (zp_extra_energy_suit1.5.sma - 2416 views - 12.2 KB)
__________________
28 Weeks Later | Zombie Plague
IP: 217.199.213.9:27049


Last edited by DjReactive; 11-25-2010 at 10:58.
DjReactive is offline
Send a message via ICQ to DjReactive
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 11-09-2010 , 11:09   Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
Reply With Quote #2

nice
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Kiryu Zero
Senior Member
Join Date: Apr 2010
Location: Sankt-Peterburg, Russia
Old 11-09-2010 , 11:19   Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
Reply With Quote #3

suitable for ZPA?
__________________
Kiryu Zero is offline
Send a message via ICQ to Kiryu Zero Send a message via Skype™ to Kiryu Zero
DjReactive
Member
Join Date: Sep 2010
Location: Russia
Old 11-09-2010 , 11:22   Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
Reply With Quote #4

Excuse, don't know. I tested on ZP 4.3
__________________
28 Weeks Later | Zombie Plague
IP: 217.199.213.9:27049

DjReactive is offline
Send a message via ICQ to DjReactive
Kiryu Zero
Senior Member
Join Date: Apr 2010
Location: Sankt-Peterburg, Russia
Old 11-09-2010 , 11:28   Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
Reply With Quote #5

And the files are downloaded to it??




don t work in ZPA
__________________

Last edited by Kiryu Zero; 11-09-2010 at 11:38.
Kiryu Zero is offline
Send a message via ICQ to Kiryu Zero Send a message via Skype™ to Kiryu Zero
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 11-09-2010 , 12:38   Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
Reply With Quote #6

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 !
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
albert123
Veteran Member
Join Date: Mar 2009
Location: VietNam, Hai Phong
Old 11-10-2010 , 04:53   Re: [ZP] Extra Item: Energy Suit [3 Multimodes] || Update v.1.3
Reply With Quote #7

Oh man, include god mode.
__________________
albert123 is offline
DjReactive
Member
Join Date: Sep 2010
Location: Russia
Old 11-15-2010 , 09:31   Re: [ZP] Extra Item: Energy Suit [v.1.4 Update]
Reply With Quote #8

New fixed version.
__________________
28 Weeks Later | Zombie Plague
IP: 217.199.213.9:27049

DjReactive is offline
Send a message via ICQ to DjReactive
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 11-16-2010 , 05:48   Re: [ZP] Extra Item: Energy Suit [v.1.4 Update]
Reply With Quote #9

reupload the screens pls
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
DjReactive
Member
Join Date: Sep 2010
Location: Russia
Old 11-25-2010 , 10:58   Re: [ZP] Extra Item: Energy Suit [v. 1.5]
Reply With Quote #10

Added Screen & Fixed version
__________________
28 Weeks Later | Zombie Plague
IP: 217.199.213.9:27049

DjReactive is offline
Send a message via ICQ to DjReactive
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 15:39.


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