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

Spawn protection & falldown damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 02-02-2007 , 14:37   Spawn protection & falldown damage
Reply With Quote #1

Spawn protection is done to avoid new player been killed by campers or so. But a protected player can also _safely_ falldown within protection period. This is little unfair protection
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
BAILOPAN
Join Date: Jan 2004
Old 02-02-2007 , 17:59   Re: Spawn protection & falldown damage
Reply With Quote #2

Hrm, that's an interesting side effect. In the Source version of CS:S DM, I have it so if you move, you lose the protection.
__________________
egg
BAILOPAN is offline
SeToY
SourceMod Donor
Join Date: Jul 2006
Location: Germany
Old 02-03-2007 , 09:04   Re: Spawn protection & falldown damage
Reply With Quote #3

hmm why do u make it not for 1.6 too?
__________________
Success is a lousy teacher. It seduces smart people into thinking they can't lose.
- Bill Gates

Quote:
Originally Posted by Hawk552
SeToY is a retard, scumbag and asshole and you shouldn't pretend that he isn't.
SeToY is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 02-05-2007 , 09:54   Re: Spawn protection & falldown damage
Reply With Quote #4

It's easy. But i don't like this because real protection should work against bullet/grenade/knife damage only until a player pressed ATTACK/ATTACK2 button or protection interval has expired. That one is much harder to implement.

Here is the .sma with protection that BAIL has mentioned.

Just added/changed this:
Code:
new const g_iProtectionOffFlags = IN_ATTACK | IN_ATTACK2 | IN_FORWARD | IN_BACK | IN_MOVELEFT | IN_MOVERIGHT
... public On_ClientPreThink(id) { ...
    if ( buttons & g_iProtectionOffFlags )
    {         RemoveProtection(id)     } }
Attached Files
File Type: sma Get Plugin or Get Source (csdm_protection.sma - 685 views - 5.3 KB)
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
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 16:38.


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