AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Anti-Godmode Killing (https://forums.alliedmods.net/showthread.php?t=79196)

zssz 10-18-2008 17:43

Anti-Godmode Killing
 
1 Attachment(s)
Description:
This plugin makes it so that whenever a user attains godmode, they will not be able to damage someone else. Shots will still be able to be fired, but no damage will be taken to the player they are shooting at. Knife and grenades will be unable to harm/flash/smoke up the place. When their godmode wears off or is removed, they will get their ability to shoot, knife, and nade people again.

Uses:
  • Prevent users with godmode from damaging/killing other players
  • Prevent users under spawn protection from dealing damage while they are protected
Modules:
  • Fun
  • Fakemeta
Cvars:
  • antig_enabled <0/1> (Set to 1 by default)
Future Updates:
  • Possibly add ability to block killing while they have no-clip (on/off by cvar or something)
  • Add ability whether or not to block killing when player has X hp or over
Change Log:
Oct. 18
  • First Release
Oct. 19
  • Updated code to better (and shorter) way to check if player is attacking
  • Got rid of fun module
  • Compatible with all mods now, not just cstrike
Credits:
  • MeRcyLeZZ for enlightening me on get_pcvar
  • The common rule on most servers -- "Don't kill with godmode on" (for the idea)
Ending notes:

I made this plugin because I was tired of the people that play on my server coming to me complaining about so and so killing them while they were in godmode. I also made it because I think this would be very helpful to other server owners (and possibly server owners that sell admin) so they can keep control on their admins while they are away. Yes, I know that this plugin isn't the most complex, and yes, I also know that I am not the most experienced Pawn coder, but I know what every part of this code does do and doesn't do.

v3x 10-18-2008 19:33

Re: Anti-Godmode Killing
 
Good idea :)

HLM 10-18-2008 19:50

Re: Anti-Godmode Killing
 
Excellent plugin idea. +K

{PHILMAGROIN} 10-18-2008 19:57

Re: Anti-Godmode Killing
 
Very cool

koss_4life 10-18-2008 21:10

Re: Anti-Godmode Killing
 
Nice to use with GunGame DeathMatch (spawn-protection you know) ppl who has spawn-protection is godlike and can shoot others

zssz 10-18-2008 22:08

Re: Anti-Godmode Killing
 
Quote:

Originally Posted by koss_4life (Post 701883)
Nice to use with GunGame DeathMatch (spawn-protection you know) ppl who has spawn-protection is godlike and can shoot others

I didn't even realize that when I got the idea to make this. I'm surprised I didn't think about that because my server has CSDM enabled on it quite frequently. Thanks for bringing that to my mind!

Glad you all like it ;)

Dores 10-19-2008 18:20

Re: Anti-Godmode Killing
 
If a player with spawn-protection can't shoot anyone, what is the spawn-protection's purpose? Warmup? O_o

But I like the idea with the godlike, which is more useful than spawn-protection.

zssz 10-19-2008 18:41

Re: Anti-Godmode Killing
 
Quote:

Originally Posted by dor123 (Post 702371)
If a player with spawn-protection can't shoot anyone, what is the spawn-protection's purpose? Warmup? O_o

Spawn protection is there so people dont spawn camp and kill you right when you spawn. It also allows you time to get new weapons (depending on what the spawn protection time is). During that time you have protection, its pretty cheap to be able to get kills while other people cannot kill you.

Dores 10-19-2008 19:57

Re: Anti-Godmode Killing
 
Ok, sorry.:crab: Then it's a good idea!

grimvh2 10-20-2008 14:45

Re: Anti-Godmode Killing
 
I think its a great idea , and usefull , nice :up:


All times are GMT -4. The time now is 19:25.

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