AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   TA Autoknife (https://forums.alliedmods.net/showthread.php?t=21259)

VEN 11-27-2005 10:42

TA Autoknife
 
1 Attachment(s)
DESCRIPTION:
This plugin force player switch to knife if he attacked a teammate.
Note: plugin wouldn't work for team attacks with HE grenades.

REQUIREMENT:
Attacker must have a knife. :)

DEFINES:
CVAR_TA_AUTOKNIFE - name of cvar which enables plugin
SWITCH_WEAPON_NAME - name of weapon to switch (you can specify any other weapon name if you wish)

CVARS:
amx_ta_autoknife - set to 1 to enable plugin (0: OFF, 1: ON, default: 1)

VERSIONS:
0.1 first release

uTg | bigpapajiggs 11-27-2005 14:39

This has the potential to be very useful. It can prevent mass TA genecide.

VEN 11-29-2005 05:42

I have an ideas.

1. CVAR/Clientside option: switch to knife on # TAs (e.g.: 2 TA per 2 second)

2. Clientside option: switch to knife ON/OFF (setinfo)

Anyone interesting? :)

SweatyBanana 11-30-2005 12:41

Does this make it so he can switch back to his other weapon? or is it knife only for him for the round?

and can you add if they TK it makes them drop all weapons (except bomb and knife)

VEN 11-30-2005 14:33

Quote:

Originally Posted by hansel211
Does this make it so he can switch back to his other weapon?

Yes.
Quote:

can you add if they TK it makes them drop all weapons (except bomb and knife)
Yes.

EDIT: Wait. You said TK? Actually this plugin is for TA but anyway i can. I'll PM you the code later.

pulpy 11-30-2005 21:52

y PM when you can post? Just add it to current one or make 2 available. 1 for TA's and 1 for Tk's. People can choose wat they want ;)

Kensai 12-01-2005 18:32

TK = Team Kill(friendly fire)

Xanimos 12-01-2005 21:47

Quote:

Originally Posted by Kensai
TK = Team Kill(friendly fire)

TA = Team Attack(friendly fire)

see I can make random statements too.

VEN 12-02-2005 08:06

Quote:

Originally Posted by hansel211
can you add if they TK it makes them drop all weapons (except bomb and knife)

Enjoy: Drop Weapons on TK

Quote:

TK = Team Kill(friendly fire)
Thanks for the briefing.

Brad 02-21-2006 10:54

Non-Obligatory Suggestions by Brad ™
  1. If you insist on doing something like this:
    Code:
    #define CVAR_TA_AUTOKNIFE "amx_ta_autoknife" // name of cvar which enables plugin #define SWITCH_WEAPON_NAME "weapon_knife" // name of weapon to switch
    At least do is this way:
    Code:
    new CVAR_TA_AUTOKNIFE[] = "amx_ta_autoknife" // name of cvar which enables plugin new SWITCH_WEAPON_NAME[] = "weapon_knife" // name of weapon to switch
    You can find some reasons why here.
  2. Find a way to detect grenade TAs.


All times are GMT -4. The time now is 09:38.

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