AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Super Player (https://forums.alliedmods.net/showthread.php?t=147803)

Jelle 01-14-2011 10:12

Super Player
 
4 Attachment(s)
Super Player

Description

Each new round a random player will be selected to be a super player. The player which is selected gets more HP, AP, speed and gravity.

cvars
Code:

//super player
super_health 200 //Health to set on super player. Set to 100 to disable
super_armor 200 //Armor to set on super player. Set to 100 to disable
super_speed 300 //Speed to set on super player. Set to 240 to disable
super_gravity 0.8 //1.0 = normal gravity 0.5 = half gravity
super_prefix 1 //Set to 0 to disable name prefix
super_announce 1 //Set to 0 to disable announcement for who is the super player
super_givehe 0 //set to 1 to give a he grenade to the super player
super_givesmoke 0 //Set to 1 to give a smoke grenade to the super player
super_giveflash 0 //Set to 1 to give 1, set to 2 to give 2. Higher than 2 is ignored and wont give any flash at all
super_heal 1 //Set to 0 to disable healing for the super player.
super_healpoints 50 //HP to heal each kill
super_advertise 1 //Enable/disable advertising. 1 enables, 0 disables.
super_glow 1 //Enable/disable glowing for the super players
/*Below only used if super_glow is set to 1*/
super_glowred 255 //How much red in the glow 255 is max
super_glowgreen 0 //How much green in the glow 255 is max
super_glowblue 0 //How much blue to glow 255 is max

Defines
At the top of the plugin code you will see a define:
PHP Code:

//comment out not to use sound
#define USE_SOUND 

Comment it out like this:
PHP Code:

//comment out not to use sound
//#define USE_SOUND 

Then the sound wont be downloaded by any clients, nor will it be played.
The sound is only played for the player who gets to be the super player.
When changing this define you need to recompile the code.

Credit
Credit goes to Exolent for fixing the code. I've also gotten some help from Drekes, Kreation and Matsi.

Changelog
v. 2.0Beta 4: Added a cvar so you can search for servers using this plugin.
v. 2.0Beta 3: Changed the way advertising works, now uses plugin_cfg instead og plugin_init.
v. 2.0Beta 2: Changed the way it checks if the picked guy has just been a super player.
v. 2.0Beta: Added a check so the same person shouldn't be the super player twice now. I did not get to test the grenades but I added a debug. Each time a grenade should be given it should print a global message which says that the grenade is given. I can't really test it so I have to do it like this. So please, do test this for me and give me some feedback.
v. 1.9b: Fixed an issue where the server would crash if it is empty.
v. 1.9a: Fixed the announcement so it doesn't say CT player all the time.
v. 1.9: Added a glow for the super player. Cvar list updated. I am still waiting for feedback on if it works fine for good players or not.
v. 1.8: Added a new cvar: super_advertise. Added since I wanted to advertise this a bit. If you don't like it then just turn it off using the cvar. If you have it on, place the super.txt in the cstrike folder. Still waiting for feedback for version 1.7. To test it simply download super_player1.8.
v. 1.7: Changed a few minor things. It now chooses one CT and one T to become a super player, to even it out a bit. *NOTE* I haven't tested this version completely as I have no way to do so. Therefor the version 1.6 is still here until someone can confirm for me that 1.7 is working as intended without bugs.
v. 1.6: Added healing option for the super player.
v. 1.5: Corrected a few typos. Also optimized a bit.
v. 1.4: Added cvars to give flashbang, he grenade or smoke grenade.
v. 1.3: Added a define at top to choose if you want sound or not.
v. 1.2: Added a cvar check for the speed thanks to xPaw.
v. 1.1: Exolent fixed the code, also added cvars for each attribute to add.
v. 1.0: Beta version. A few stuff didn't work.

Servers running this plugin

egbertjan 01-14-2011 13:26

Re: Super Player
 
Looking good, I might even want to add this to my server! Thanks for sharing.

MostwantedScript 01-14-2011 18:51

Re: Super Player
 
Nice plugin can be used at many mods

xPaw 01-14-2011 18:56

Re: Super Player
 
You forget to check speed cvar in weapon change forward

ConnorMcLeod 01-14-2011 19:41

Re: Super Player
 
Quote:

Originally Posted by xPaw (Post 1393734)
You forget to check speed cvar in weaponSPEED change forward

Fixed, this forward is also called when you use shield, zoom a sniper, and at end of freezetime when you don't change gun

Jelle 01-14-2011 21:49

Re: Super Player
 
Fixed, thanks.

s3rserii 01-15-2011 06:38

Re: Super Player
 
u can ad a sound who says to the player who earn the super status "Supermodus Enabled" like crysis.. "maximum strenght" and so son :) nice idea or?

http://rapidshare.com/files/442676382/strength.wav

peace

Jelle 01-15-2011 15:56

Re: Super Player
 
Added the sound you requested. I used a define at the top of the code so if you are not using the sound it wont make clients precache it.

TzK 01-15-2011 18:44

Re: Super Player
 
Maybe you can make that with cvar you can set that super player will gain Grenades and you can set wich grenades and how much he will be given :)

s3rserii 01-15-2011 18:46

Re: Super Player
 
Quote:

Originally Posted by Jelle (Post 1394363)
Added the sound you requested. I used a define at the top of the code so if you are not using the sound it wont make clients precache it.

nice work :)


All times are GMT -4. The time now is 11:36.

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