Raised This Month: $51 Target: $400
 12% 

SpawnProtection


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
a.aqua
Senior Member
Join Date: Jul 2009
Location: Russia
Old 04-16-2010 , 09:03   SpawnProtection
Reply With Quote #1

SpawnProtection


Author: a.aqua
Actual version: 1.6

Description:
At the spawn player will be invulnerable (zomg, google translator)
Credits:
  • Hafner
  • Fedcomp
  • xPaw
  • PomanoB

CVAR's:
  • sp_time (default: 10.0) - time for unvulnerable
  • sp_showmsg (default: 1) - show msg for player that he invulnerable?
  • sp_msgeffect (default: 0) - effect when hud messages are shown
    • 0 - default
    • 1 - flickery credits
    • 2 - write out (training room)
  • sp_noattack (default: 1) - when player invulnerable he don't may attack another players?
  • sp_hologram (default: 1) - when player invulnerable him model are holografic?

Translation:
  • [en] - a.aqua
  • [ru] - a.aqua
  • [bg] - papyrus_kn
  • [sv] - kanatzu
  • [es] - ironmaiden
  • [sr] - HaLLoWeN
  • [pl] - kubaku4
  • [sk] - i.898.i
  • [cz] - i.898.i
  • [de] - SeToY
  • [nl] - crazyeffect
  • If you want added your lang - welcome to thread.

Changelog:
  • ver. 1.2:
    • Added cvar sp_msgeffect for effect of hud message
    • Hook player spawn changed to ham method
  • ver. 1.4:
    • Code optimize and cleaned
    • Added translations to bg, sv, es
  • ver. 1.5:
    • Added cvar sp_noattack, fixed small bugs.
  • ver. 1.6:
    • Added cvar sp_hologram for hologram effect.

Screenshots / video:
Attached Files
File Type: sma Get Plugin or Get Source (SpawnProtection.sma - 1222 views - 2.4 KB)
File Type: txt SpawnProtection.txt (587 Bytes, 399 views)
__________________

Last edited by a.aqua; 07-18-2010 at 18:39. Reason: version 1.6
a.aqua is offline
Send a message via ICQ to a.aqua
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 04-16-2010 , 09:05   Re: SpawnProtection
Reply With Quote #2

Already made?
__________________
Retired.
Xalus is offline
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 04-16-2010 , 09:06   Re: SpawnProtection
Reply With Quote #3

Quote:
Originally Posted by Xalus View Post
Already made?
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
HaLLoWeN
Member
Join Date: Nov 2009
Location: Serbia, Belgrade
Old 04-16-2010 , 09:11   Re: SpawnProtection
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?p=17711Yea, alredy made.
HaLLoWeN is offline
a.aqua
Senior Member
Join Date: Jul 2009
Location: Russia
Old 04-16-2010 , 09:17   Re: SpawnProtection
Reply With Quote #5

I don't know

I use hamsandwich, it is so rationaly, no?
__________________
a.aqua is offline
Send a message via ICQ to a.aqua
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-16-2010 , 09:48   Re: SpawnProtection
Reply With Quote #6

Finally someone made it without using godmode. Bad way of hooking player spawn tho.
__________________
xPaw is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 04-16-2010 , 11:13   Re: SpawnProtection
Reply With Quote #7

Quote:
Originally Posted by xPaw View Post
Finally someone made it without using godmode. Bad way of hooking player spawn tho.

why is bad that native? bailopan use in his csdm protection same but with fakemeta set_pev( index, pev_takedamage, DAMAGE_* );

and i wanted to post a new supercool spawnprotection.... but now is 2 plugins so i wont do it.. ^^
__________________

Last edited by tuty; 04-16-2010 at 11:15.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-16-2010 , 11:17   Re: SpawnProtection
Reply With Quote #8

Quote:
Originally Posted by tuty View Post
why is bad that native? bailopan use in his csdm protection same but with fakemeta set_pev( index, pev_takedamage, DAMAGE_* );

and i wanted to post a new supercool spawnprotection.... but now is 2 plugins so i wont do it.. ^^
It won't block players die from non-players, for example trigger_hurt.
__________________
xPaw is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 04-16-2010 , 11:18   Re: SpawnProtection
Reply With Quote #9

lol, i should work on that in my new plugin (:
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-16-2010 , 16:15   Re: SpawnProtection
Reply With Quote #10

Quote:
Originally Posted by xPaw View Post
It won't block players die from non-players, for example trigger_hurt.
LIES

Code:
// When touched, a hurt trigger does DMG points of damage each half-second
void CBaseTrigger :: HurtTouch ( CBaseEntity *pOther )
{
	float fldmg;

	if ( !pOther->pev->takedamage )
		return;

About code, why do you check TR_iHitgroup ??

Major error is that you enable/disable TraceAttack forward when player spawn / in task, but the forward is not player index specific.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 04-17-2010 at 02:56.
ConnorMcLeod is offline
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 19:38.


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