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

FF Flag Assist Points


Post New Thread Reply   
 
Thread Tools Display Modes
Author
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Plugin ID:
770
Plugin Version:
1.6
Plugin Category:
General Purpose
Plugin Game:
Fortress Forever
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Gives points to players that helped assist the flag
    Old 02-12-2009 , 21:18   FF Flag Assist Points
    Reply With Quote #1

    ALERT: After installing this plugin your server may need a restart.

    +description+
    - This plugin gives fortress points to players that helped assist a flag capture.

    - The points are given in a percentage depending on how long a player held the flag compared to other assistants.

    - The flag capturer receives the default capture points, but no assist points.

    - This plugin only works on CTF maps as long as they contain correct logging data.

    +server cvars+
    - sv_assistpool <Number of points>
    + Sets the amount of points in the flag cap assist pool.

    - sv_defendpoints <Number of points>
    + Sets the amount of points a player gets for defending the flag.

    +client commands+
    - flagstatus
    + Shows the player the status of their teams flag and the enemy teams flag.

    +logging actions+
    - flag_defend_carrier: The logged player killed the enemy team flag carrier.
    - flag_defend: The logged player killed an enemy player near the flag.
    - flag_assist: The logged player helped assist teammates for a flag capture.

    +installation+
    - Place the FlagAssists.smx file inside of the addons/sourcemod/plugins/ folder.

    +credits+
    - [Rawh]: Providing a Linux box to test on, testing plugin, and finding bugs.
    - [psychonic]: Pointing out exploits and ideas.
    - [Tyrant]: Helped test plugin.
    - [PartialSchism]: Helped test plugin.
    - [TonyCip]: Helped test plugin.
    - [Bully]: Helped test plugin.

    +changelog+
    Version 1.0 ( 02-12-2009 )
    -- Initial release.

    Version 1.1 ( 02-13-2009 )
    -- Added logging of the flag assists for stats programs.
    -- Added hooks for say_team and say2 to remove exploiting (thanks psychonic).

    Version 1.2 ( 02-24-2009 )
    -- Added flaginfo command for players to view the status of the flags.
    -- Added points for players that help defend the flag.
    -- Added logging for defending the flag (logs as flag_defend).
    -- Added cvar sv_assistpool to set the amount of points in the flag capture pool.
    -- Added cvar sv_defendpoints to set the amount of points a player gets from defending the flag.
    -- Fixed some problems plugin was having on Linux machines.

    Version 1.3 ( 02-25-2009 )
    -- Fixed variables that needed reset on map change.
    -- Added the flags location to the flaginfo command.
    -- Colorized the flaginfo command.

    Version 1.4 ( 02-28-2009 )
    -- Added check to see if the map is CTF. If not a CTF map the plugin will 'unload'.
    -- Added flag defend points for killing players within a certain distance of the flag.
    -- Added a new logging feature for killing the flag carrier: 'flag_defend_carrier'.
    -- Changed 'flag_defend' logging. This now represents that you killed someone near your flag.
    -- Changed 'flaginfo' command to 'flagstatus' due to flaginfo already existing in FF.
    -- Added message to inform connected players about the flagstatus command.
    -- Fixed bug where player carrying a flag would disconnect; which would cause wrong flag status.

    Version 1.5 ( 03-02-2009 )
    -- Fixed bugs in the location message hook.
    -- Fixed a bug in the client disconnect hook.
    -- Fixed bug where plugin tried to give non-player entities Fortress-Points.

    Version 1.6 ( 03-05-2009 )
    -- Fixed showing the dead players flagstatus.
    -- Optimized the SayText function so it no longer needs the extra name checks.
    Attached Files
    File Type: sp Get Plugin or Get Source (FlagAssists.sp - 1432 views - 21.6 KB)

    Last edited by hlstriker; 03-31-2009 at 00:41.
    hlstriker is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 02-13-2009 , 09:18   Re: FF Flag Assist Points
    Reply With Quote #2

    Nice job trying to catch exploiting of it through say, but might also want to hook say2 and say_team to catch those too.

    Edit: I have added this, as well as logging of the flag_assist event for stats programs such as HLstatsX:CE or PsychoStats to parse.

    I commented my changes so you can pick them out easily.

    Last edited by psychonic; 02-13-2009 at 18:46. Reason: Deleted attached plugin since features were later included in main plugin
    psychonic is offline
    hlstriker
    Green Gaben
    Join Date: Mar 2006
    Location: OH-IO!
    Old 02-13-2009 , 15:26   Re: FF Flag Assist Points
    Reply With Quote #3

    Thanks, psychonic

    Didn't even think to hook say_team and say2 (not sure FF uses say2 though).

    I actually added the logging last night when someone on the FF forums asked about it. Are you by chance 'Dinosaur Gas' from those forums?
    hlstriker is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 02-13-2009 , 15:37   Re: FF Flag Assist Points
    Reply With Quote #4

    Quote:
    Originally Posted by hlstriker View Post
    (not sure FF uses say2 though).
    I don't think it naturally uses say2, but I think it can still be used via the console.
    Quote:
    Originally Posted by hlstriker View Post
    Are you by chance 'Dinosaur Gas' from those forums?
    I am not. I'm psychonic on there too, though I rarely post.
    psychonic is offline
    er88
    New Member
    Join Date: Feb 2009
    Old 02-17-2009 , 01:46   Re: FF Flag Assist Points
    Reply With Quote #5

    I'm just curious to know the reason for making this a sourcemod plugin is that just what you're used to? Could this have also been implemented as part of the perl daemon? Also, is there anything extra that you have to set up in hlstatsx like adding ff_assist_flag action triggers or something?
    er88 is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 02-17-2009 , 12:21   Re: FF Flag Assist Points
    Reply With Quote #6

    Quote:
    Originally Posted by er88 View Post
    I'm just curious to know the reason for making this a sourcemod plugin is that just what you're used to? Could this have also been implemented as part of the perl daemon? Also, is there anything extra that you have to set up in hlstatsx like adding ff_assist_flag action triggers or something?
    It is better to log from the plugin because
    1) The plugin is needed anyway if Fortress Points are to be awards
    2) Not everyone is running the same stats program. For example, good luck to those on HLX Premium "editing the perl daemon". Also, some users prefer psychostats. Logging it in a standard format allows it to be not tied to any one mod.

    Yes, for hlstatsx (all versions), you would have to add the action flag_assist
    psychonic is offline
    er88
    New Member
    Join Date: Feb 2009
    Old 02-17-2009 , 17:38   Re: FF Flag Assist Points
    Reply With Quote #7

    ok, thanks for clearing that up psychonic.
    er88 is offline
    hlstriker
    Green Gaben
    Join Date: Mar 2006
    Location: OH-IO!
    Old 02-20-2009 , 00:01   Re: FF Flag Assist Points
    Reply With Quote #8

    Quote:
    Originally Posted by er88 View Post
    I'm just curious to know the reason for making this a sourcemod plugin is that just what you're used to? Could this have also been implemented as part of the perl daemon? Also, is there anything extra that you have to set up in hlstatsx like adding ff_assist_flag action triggers or something?
    What psychonic said.

    Also, the main reasoning that it's a SourceMod plugin is so I could actually modify/add the Fortress-Points in game so the players can see them.
    hlstriker is offline
    Puntje
    Member
    Join Date: May 2004
    Old 02-22-2009 , 19:54   Re: FF Flag Assist Points
    Reply With Quote #9

    Can I perhaps make a request?

    I'm trying to make use of stats to get people to spend more time defending / capping a flag on FF. It is after all a CTF game, but due to the plugin they often just end up killing eachother more then go for the flag.

    As also noted in this post I'd like to request something that logs a flag_defend. Something that gets triggered when a defender shoots down someone that carries a flag.

    Could you perhaps add this to your plugin?

    Cheers!
    __________________
    ~ Nothing travels faster then the speed of light with the possible exception of bad news, which follows it's own laws! - Douglas Adams ~
    Puntje is offline
    Send a message via ICQ to Puntje
    hlstriker
    Green Gaben
    Join Date: Mar 2006
    Location: OH-IO!
    Old 02-23-2009 , 04:03   Re: FF Flag Assist Points
    Reply With Quote #10

    Yeah, I'll add a flag_defend method sometime this week.

    If you have any more ideas, keep them coming
    hlstriker 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 20:10.


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