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

Announcing TKs of engineer's buildings.


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Team Fortress Classic        Category:   General Purpose        Approver:   EKS (166)
pizzahut
Senior Member
Join Date: Oct 2004
Old 05-16-2005 , 14:21   Announcing TKs of engineer's buildings.
Reply With Quote #1

This was meant to be the basis for a TFC specific TK punish plugin.
Atm it forwards TFC log events about disp/sentry/tele TKs in form of an announcement to all players.
Unfortunately, TFC does only log certain types of such TKs, so not everything can be caught.

Requires: RegEx module.
Attached Files
File Type: sma Get Plugin or Get Source (tfclogevents.sma - 1820 views - 4.0 KB)
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.
pizzahut is offline
sub
Senior Member
Join Date: Nov 2004
Location: Morristown, New Jersey
Old 05-16-2005 , 15:15  
Reply With Quote #2

it would kick ass if it was for ntf too mgs
sub is offline
Send a message via AIM to sub Send a message via MSN to sub
pizzahut
Senior Member
Join Date: Oct 2004
Old 05-17-2005 , 14:15  
Reply With Quote #3

NeoTF logs aren't very informative.

World triggered "ntf_destroyed_antimissile" against "ARE YOU AN AXOLOTL?<4127><STEAM_0:1:1034164><Red>"
World triggered "ntf_destroyed_mg" against "Tidus_mdp<4096><STEAM_0:1:940549><Blue>" (type "ntf_rocklauncher")
World triggered "ntf_destroyed_landmine" against "casper<4089><STEAM_0:0:4991646><Blue>"
World triggered "ntf_destroyed_teledisk" against "Animation205<4146><STEAM_0:0:4793072><Bl ue>"
World triggered "ntf_destroyed_S.A.M.Launcher" against "casper<4089><STEAM_0:0:4991646><Blue>"
World triggered "ntf_destroyed_tripmine" against "casper<4089><STEAM_0:0:4991646><Blue>"

Always says "world" did it.
pizzahut is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 05-24-2005 , 11:26  
Reply With Quote #4

I've added the announcing of player TKs. This is just done for the weapon name, so you can see how it happened without having to get the server logs.

Note this is a beta version, in this case it means:
- untested
- uncomplete (planning to add two cvars for turning off each feature separately)
Attached Files
File Type: sma Get Plugin or Get Source (tfclogevents.sma - 1591 views - 7.2 KB)
pizzahut is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 05-27-2005 , 16:39  
Reply With Quote #5

Another thing to add. With the help of my "entity info" plugin I may be able to determine if someone is attacking a construction which belongs to the own team. The colour map (EV_INT_colormap) is the key.

http://forums.alliedmods.net/showthread.php?t=13738

edit: Also found the function "parse_loguser", I'll use it in the next version.

Added 2005-08-23:

Here are some ideas I got:

detection of TA on engi's buildings

1) Use client commands +attack (-attack for sniper rifle) to a) save CPU time and b) be able to block attacks. Blocking is optional, after all team attack detection is meant to be for servers with friendly fire enabled - a simple announcement or punishment would be the alternatives. Announcment/punishment should be turned off depending on the state of mp_teamplay.

2) Check engineer's player data if it contains the entity number of his buildings. (Otherwise only the team of the buildings can be determined, since the buildings do not link to the engineer.)

Edit 2011-01-08:

AFAIR, this was meant to be done using the function get_user_aiming. See also one of my other plugins, Entity Info, which dumps the info about an entity the player is looking at.
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.

Last edited by pizzahut; 01-08-2011 at 11:22.
pizzahut 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 05:13.


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