[SM Plugin] Flag Assist Points
Another plugin for SourceMod.
You can download it HERE: Copy and pasted from the AM forums: Quote:
|
Does it use a trigger event for the logs so hlstatsx can track it?
|
Well it uses the trigger events, but do you mean does it create new events for the assist points?
If that's what you mean then no, but I can look into adding it for you if this is what you want (just let me know how you want it formatted). |
- The points are given in a percentage depending on how long a player held the flag compared to other assistants.
Could you elaborate on this? Are they given a percentage of a fixed amount, or does it go up over time? 'cause, you know... people just holding the flag for points and all that. |
Most CTF maps give 1000 fortress points per cap so I based it on that. This percentage also includes the person that capped the flag even though they don't get the assist points.
Example: Player 1: Holds flag for 10 seconds (20%). Player 2: Holds flag for 20 seconds (40%). Player 3: Holds flag for 10 seconds (20%). Player 4: Holds flag for 10 seconds (20%). Total seconds = 50. Player 3 captures the flag. Player 1: Gets 200 assist points. Player 2: Gets 400 assist points. Player 3: Gets 0 assist points AND 1000 points for the flag capture. Player 4: Gets 200 assist points. Notice the assist points only total to 800 instead of 1000 since the flag capturer didn't get any assist points. |
Wow, that's actually pretty damn balanced. Nice dude.
|
Well what if they hold it for 30 seconds? It's not uncommon to see people with the flag multiple times totaling to about 30 or 40 seconds till it's actually captured?
|
Say it takes me 10 seconds to bring the flag back to my base, then I get gibbed by someone. A teammate grabs the flag and holds it in the respawn for a full minute then captures. I get 142 points for doing all the work and they get the 1000 for camping with it?
|
@KubeDawg: Even if you drop the flag multiple times it will keep addind those times together until the flag is capped, then it resets.
@Jester: This is why I give the person that caps the flag the full amount of default flag cap points and 0 assist points. Otherwise people probably would try to camp around before capping just to get more assist points. |
After some technical issues I got this working on the e0 server :)
|
Quote:
This plugin should be built into the Fortress points system in 2.4 or a future FF release imo. |
TO THE E0 SERVER!!!
|
Plugin updated, see change log.
Note: Server might need a full restart after adding the plugin. On Rawh's server we tested and it didn't work until the server restarted. |
Sweet, got it working perfectly on the e0 server
|
Quote:
The server crashed last time, got restarted automatically and the plugin seemed to work after that. The crash was in no way related to the plugin by the way :) Quote:
The logs show it as: Quote:
The above shows up on the dailyaward site. You'll have to wait for 1 day till hlstats-awards.pl gets executed and you see the action awards on the dailyaward part. Optional: If you wish to see if it already works, use hlstats-awards.pl. Since it creates stats for the day before the current date, be sure to set the current day + 1. Code:
./hlstats-awards.pl --date=YYYY-MM-DD Important: The points you get for flagassist / flagdefend during the playtime on a map, ingame, are not the same as the points you get in hlstatsx. |
Updated to 1.3 which fixed a big problem that could cause the plugin to stop working after map change.
|
How do flag defense points work?
|
If you kill someone with your teams flag you get flag defense points.
|
Sweet. Any chance this could include killing an enemy within a certain distance of a downed flag?
|
@fishBurger: Yes, see update ;)
----- Updated to 1.4; Please see the change log for a few big changes. Admins using hlststs will want to read the change log especially carefully. And remember, after installing the update your server might need a full restart. |
All times are GMT. The time now is 06:51 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.