Raised This Month: $32 Target: $400
 8% 

Spawn Attack Punishment


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
MRG
Junior Member
Join Date: May 2007
Old 05-03-2007 , 15:17   Spawn Attack Punishment
Reply With Quote #1

Spawn Attack Punishment v1.10.3

Description

Punishes a player who attacks an enemy before a set number of seconds from the beginning of the round. Unlike previous such plugins:
  1. Prints 'ATTACK' in center of screen indicating when it is safe to attack. People complained the game timer was off. The message can be disabled.
  2. Also punish people for throwing grenades (not just damage from grenades). Each type of grenade can be individually set.
Cvars
  • atk_timer <seconds> number of seconds to punish for attacking (0 allows attacking)
  • atk_warn <0|1> disables/enables printing of 'ATTACK'
  • atk_hgren <0|1> disables/enables punishment for throwing hand grenades
  • atk_fgren <0|1> disables/enables punishment for throwing flash grenades
  • atk_sgren <0|1> disables/enables punishment for throwing smoke grenades
Updates
  • Switched to pcvars.
  • Fix bug when server has 32 players
Attached Files
File Type: sma Get Plugin or Get Source (spawnpunish.sma - 1571 views - 9.7 KB)

Last edited by MRG; 05-08-2007 at 00:13.
MRG is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-03-2007 , 15:22   Re: Spawn Attack Punishment
Reply With Quote #2

Nice...,is some kind of anti-rush! Gj
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
godlike
Senior Member
Join Date: Apr 2005
Old 05-03-2007 , 16:10   Re: Spawn Attack Punishment
Reply With Quote #3

#include <cstrike> cs only.

and is it possible to change this :

atk_hgren <0|1> disables/enables punishment for throwing hand grenades
atk_fgren <0|1> disables/enables punishment for throwing flash grenades
atk_sgren <0|1> disables/enables punishment for throwing smoke grenades

to

atk_gren <abc>
a = HE
b = FL
c = SM

?

EDIT : use PCVARS
Thats my only comment for this plugin its seem usefull and an improvment to the other spawn plugins. GJ
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me

Last edited by godlike; 05-03-2007 at 16:12. Reason: pcvars ......
godlike is offline
Skissors
Senior Member
Join Date: Jan 2007
Location: Due East of my backyard
Old 05-09-2007 , 09:28   Re: Spawn Attack Punishment
Reply With Quote #4

shouldnt you rename the thread because spawn attack punishment implies shooting a teammate in spawn.
I would rename it to Rush punishment or something.
Also, what is the punishment?
and i hate to sound like a negative nancy, but wouldnt this sort of let someone run into the other peoples spawn, then shoot them all when the timer is up
__________________
-Karma if you read this post
current karma i lost track but its less than -70
please leave your name, I wont be offended.

IM BACK
Skissors is offline
MRG
Junior Member
Join Date: May 2007
Old 05-09-2007 , 13:29   Re: Spawn Attack Punishment
Reply With Quote #5

I initially wrote this plugin for a server that had a 3-second no attack rule. This was for maps like awp_map where enemies could see and shoot each other directly from their spawn points. Also, players needed at least 3 seconds to run for cover. Not all maps need 3 seconds, most need less. This is why the plugin can be adjusted from 1 to TIME_MAX (51) seconds. It could also be disabled (or enabled) via map config files or manually from the console. I call it the Spawn Attack Punishment because its primary purpose is to prevent spawn killing, although it could be used to prevent rushing on small fy_* maps if that is what someone wants.

The punishment is that the player gets slain, struck by lightning, and thrown through the air (I tried to set it so that if they were throwing a grenade while running, their body would follow the grendade).

As for someone running into the enemy's spawn. I would assume that the enemies would shoot the player when the timer was up.

Last edited by MRG; 05-09-2007 at 15:04.
MRG is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-26-2007 , 10:42   Re: Spawn Attack Punishment
Reply With Quote #6

Redundant, unapproved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
kmal2t
BANNED
Join Date: Apr 2006
Old 06-05-2007 , 02:48   Re: Spawn Attack Punishment
Reply With Quote #7

^^
kmal2t is offline
Reply


Thread Tools
Display Modes

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 10:50.


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