AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] Easy Spawn Protection (v1.00, 25/07/2015) (https://forums.alliedmods.net/showthread.php?t=267178)

Byte 07-25-2015 02:12

[CS:GO] Easy Spawn Protection (v1.00, 25/07/2015)
 
2 Attachment(s)
Easy Spawn Protection (v1.00)

By Invex | Byte


Description
This plugin adds additional features to the existing spawn protection plugin by Fredd/cREANy0.
I made this because I do not see any approved spawn protection plugins with good configuration options.

Features
  • Highlight players who are spawn protected
  • Ability to highlight different teams (CT/T, RED/BLU, Survivor/Infected..etc).
  • Players are told how much spawn protection time they have left when they spawn
  • Two modes of operation (Player Spawn protection and Round Start Protection)
  • Ability to end spawn protection if player fires a weapon
  • Ability to stop players who control bots from getting spawn protection
  • Auto detects and works with mp_freezetime values, sm_easysp_time should thus not include mp_freezetime time

Supported Mods
  • CSGO

Note: CS:S, L4D, TF2 should mostly work but may need some minor adjustments.
Testing would be helpful as I don't have those games installed as a server.

Acknowledgements
Based on cREANy0/Fredd's Spawn Protection plugin:
https://forums.alliedmods.net/showthread.php?p=594838
https://forums.alliedmods.net/showthread.php?t=204646

Instructions
  1. Compile EasySpawnProtection.sp (note: this plugin is written in the new SM syntax).
  2. Copy EasySpawnProtection.smx to your server.
  3. Configure settings by editing /cfg/sourcemod/easyspawnprotection.cfg

ConVars

sm_easysp_enabled //Enable Easy Spawn Protection Plugin (0 off, 1 on, def. 1)
sm_easysp_mode //The mode of operation. (0 spawn protection when player is spawned, 1 spawn protection for set time from round start, def. 0)
sm_easysp_time //Duration of spawn protection. (min. 0.0, def. 5.0)
sm_easysp_notify_start //Let users know that they have gained spawn protection. (0 off, 1 on, def. 1)
sm_easysp_notify_end //Let users know that they have lost spawn protection. (0 off, 1 on, def. 1)
sm_easysp_colour_mode //Colour highlighting mode to use. (0 off, 1 highlight all player same colour, 2 use different colours for teamOne/teamTwo, def. 1)
sm_easysp_colour //Set spawn protection model highlighting colour. <RED> <GREEN> <BLUE> <OPACITY>. (def. "0 255 0 120")
sm_easysp_colour_teamOne //Set spawn protection model highlighting colour for team One (CS:S T, CS:GO T, TF2 RED, L4D Survivor). <RED> <GREEN> <BLUE> <OPACITY>. (def. "0 255 0 120")
sm_easysp_colour_teamTwo //Set spawn protection model highlighting colour for team Two (CS:S CT, CS:GO CT, TF2 BLU, L4D Infected). <RED> <GREEN> <BLUE> <OPACITY>. (def. "0 255 0 120")
sm_easysp_endonattack_mode //Specifies if spawn protection should end if player attacks. (0 off, 1 turn off SP as soon as player shots or fire any weapon, def. 0)
sm_easysp_sponbotcontrol //Should bots receive spawn protection if another player takes control of them. (0 off, 1 on, def. 1)

ConVar Information
  • If sm_easysp_colour_mode is 1, colour in cvar sm_easysp_colour is used. Otherwise if sm_easysp_colour_mode is 2, then colours in cvars sm_easysp_colour_teamOne and sm_easysp_colour_teamTwo is used.
  • Set sm_easysp_mode to 1 if you want spawn protection to be available for a fixed time from round start.
  • Team one is: CS:S/CS:GO T, TF2 RED, L4D survivor
    Team two is: CS:S/CS:GO CT, TF2 BLU, L4D infected

Translations
If you feel like adding another language to the list, let me know!
  • English

Suggestions (Will be added to next version)
Please make some suggestions because if you need a particular feature, chances are other people will too.
  • N/A

Total Previous Downloads: 1023

utaker 07-25-2015 20:14

Re: [CS:GO] Easy Spawn Protection (v1.00, 25/07/2015)
 
wow , thanks :)

Byte 07-26-2015 00:22

Re: [CS:GO] Easy Spawn Protection (v1.00, 25/07/2015)
 
Quote:

Originally Posted by utaker (Post 2324442)
wow , thanks :)

Sure no problem. What mod you running?

utaker 07-26-2015 02:38

Re: [CS:GO] Easy Spawn Protection (v1.00, 25/07/2015)
 
Quote:

Originally Posted by InvexByte (Post 2324492)
Sure no problem. What mod you running?

Running on normal CS:GO with custom maps like aim fy awp type. Just loaded it, seems complete

utaker 07-26-2015 14:30

Re: [CS:GO] Easy Spawn Protection (v1.00, 25/07/2015)
 
sm_easysp_notify_star is 0 but sometimes randomly i get messages easyspawnprotection "you are no longer spawn protected"

Byte 07-26-2015 15:01

Re: [CS:GO] Easy Spawn Protection (v1.00, 25/07/2015)
 
Quote:

Originally Posted by utaker (Post 2324698)
sm_easysp_notify_star is 0 but sometimes randomly i get messages easyspawnprotection "you are no longer spawn protected"

Make sm_easysp_notify_end 0 to disable the spawn protection ending message.

utaker 07-26-2015 16:56

Re: [CS:GO] Easy Spawn Protection (v1.00, 25/07/2015)
 
Quote:

Originally Posted by InvexByte (Post 2324709)
Make sm_easysp_notify_end 0 to disable the spawn protection ending message.

woops, i missed that one :)

Index 11-02-2015 11:16

Re: [CS:GO] Easy Spawn Protection (v1.00, 25/07/2015)
 
How i can make sm_easysp_time 9999 for some maps ?

Adam. 11-02-2015 12:00

Re: [CS:GO] Easy Spawn Protection (v1.00, 25/07/2015)
 
Nice.

coty9090 12-29-2015 14:00

Re: [CS:GO] Easy Spawn Protection (v1.00, 25/07/2015)
 
the sm_easysp_notify_end "1" is not working for me. recent sm/mms, and running DM.

*Edit* Noticed it worked only a few times.

Can you make the notify end also show when you shoot making sp off?


All times are GMT -4. The time now is 01:22.

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