Raised This Month: $94 Target: $400
 23% 

TA Autoknife


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Brad (55)
VEN
Veteran Member
Join Date: Jan 2005
Old 11-27-2005 , 11:42   TA Autoknife
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (taautoknife.sma - 2778 views - 2.1 KB)
VEN is offline
uTg | bigpapajiggs
Senior Member
Join Date: Sep 2005
Location: Bellingham, WA
Old 11-27-2005 , 15:39  
Reply With Quote #2

This has the potential to be very useful. It can prevent mass TA genecide.
__________________
What's my confidence level? I do crossword puzzles with a pen.
uTg | bigpapajiggs is offline
Send a message via AIM to uTg | bigpapajiggs Send a message via MSN to uTg | bigpapajiggs Send a message via Yahoo to uTg | bigpapajiggs
VEN
Veteran Member
Join Date: Jan 2005
Old 11-29-2005 , 06:42  
Reply With Quote #3

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? :)
VEN is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 11-30-2005 , 13:41  
Reply With Quote #4

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)
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
VEN
Veteran Member
Join Date: Jan 2005
Old 11-30-2005 , 15:33  
Reply With Quote #5

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.
VEN is offline
pulpy
Senior Member
Join Date: Oct 2005
Location: Brights Grove, ON
Old 11-30-2005 , 22:52  
Reply With Quote #6

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 ;)
__________________
pulpy is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 12-01-2005 , 19:32  
Reply With Quote #7

TK = Team Kill(friendly fire)
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 12-01-2005 , 22:47  
Reply With Quote #8

Quote:
Originally Posted by Kensai
TK = Team Kill(friendly fire)
TA = Team Attack(friendly fire)

see I can make random statements too.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
VEN
Veteran Member
Join Date: Jan 2005
Old 12-02-2005 , 09:06  
Reply With Quote #9

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.
VEN is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-21-2006 , 11:54  
Reply With Quote #10

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.
Brad 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 08:10.


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