AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D] SkeetAnnounce 1.3 (https://forums.alliedmods.net/showthread.php?t=102736)

n0limit 09-05-2009 14:40

[L4D] SkeetAnnounce 1.3
 
1 Attachment(s)
Description
SkeetAnnounce alerts the players when a skeet (damage done to a hunter during a pounce in midair) has occured by displaying the skeeter, skeetee, weapon used and damage done in chat. This allows you to identify community skeets (I did the most damage, you just got the kill), and helps you practice skeeting. The plugin also announces successful dead stops.

CVARS
skeetannounce_version - The version of the plugin
skeetannounce_verbosity - Sets the verbosity level of the plugin. See notes below.
skeetannounce_deathskeets - Only prints skeet information if the player is killed by the skeet. Otherwise, it prints any damage incured while skeeting. Default is 1.

Changelog
1.0 - Initial version
1.1 - Fixed detecting head-targetted deadstops. Fixed entityflame.
1.2 - Fixed snarespeak_version, MAXPLAYERS array, and added body hitgroup display
1.3 - Added skeetannounce_verbosity, skeetannounce_deathskeets, isAcceptableWeapon, AutoExecConfig, cumulative skeets
1.31 - Updated for plugin approval

TODO
-Provide a cvar to change where the information is printed (center chat, etc)
-Provide some feature requests!

Thanks
-EVOL and his Hunter Games mod (http://forums.alliedmods.net/showthread.php?t=87755). His code helped me figure out how to detect the end of a pounce with the isGrounded function.
-Gemini and his Damage Report plugin (http://forums.alliedmods.net/showthread.php?t=64661). I used code snippets to tally damage.
-DreadFire for helping me debug this plugin

NOTES
This plugin now uses AutoExecConfig, so you should modify the relevant cvars in cfg\sourcemod\skeetannounce.cfg.

The verbosity level allows you to set how much skeet information you want displayed, depending on what you're doing. The numbering system is as follows:
0 - Show nothing
1 - Show cumulative skeet display
2 - Show deadstops
3 - Show cumulative skeet display and deadstops
4 - Show every hit during skeet
5 - Show every hit during skeet and cumulative skeet display
6 - Show every hit during skeet and deadstops
7 - Show every hit during skeet and cumulative skeet display and deadstops

So, for example, 3 (the default) looks like this:
[IMG]http://img156.**************/img156/5836/skeet1.th.jpg[/IMG]

and is better for normal gaming while 6 looks like this:
[IMG]http://img169.**************/img169/6048/skeet2.th.jpg[/IMG]
and is probably more suited for skeet practice.

olj 09-05-2009 21:39

Re: [L4D] SkeetAnnounce
 
What is skeeting and dead stop, just dont know these termins.

Why MAX_PLAYERS 18? There can be more. Use MAXPLAYERS+1 for array size.
Gj btw, can you include support for brutal hunter mod, so if someone saved you from deadly pounce, you will know, who are you owe your life to.

Also, CreateConVar("snarespeak_version" , i think you forgot to change that.

n0limit 09-05-2009 22:23

Re: [L4D] SkeetAnnounce
 
Quote:

Originally Posted by olj (Post 924444)
What is skeeting and dead stop, just dont know these termins.

definition of skeet: the sport of shooting at clay pigeons that are hurled upward in such a way as to simulate the flight of a bird.
skeeting in l4d is the act of shooting a hunter mid-air as he's attempting to pounce you.
Dead Stops, named by the Achievement, are when you stop a hunter from pouncing you by meleeing.

Quote:

Originally Posted by olj (Post 924444)
Why MAX_PLAYERS 18? There can be more. Use MAXPLAYERS+1 for array size.

No reason, coded this in a hurry, thanks for the tip.
Quote:

Originally Posted by olj (Post 924444)
Gj btw, can you include support for brutal hunter mod, so if someone saved you from deadly pounce, you will know, who are you owe your life to.

Perhaps you could elaborate? I'm not familar with the brutal hunter mod, but the only person you'd be saving is yourself?

Quote:

Originally Posted by olj (Post 924444)
Also, CreateConVar("snarespeak_version" , i think you forgot to change that.

Woops! totally did. Thanks.

olj 09-06-2009 05:49

Re: [L4D] SkeetAnnounce
 
Thanx for reply, i'll help you with hunter mod if you want, though you only need to check distance and compare it with "l4d_hunter_fatal_distance" cvar, OFC. this should only be compared and triggered on Dead Stop only, because i think you cant predict how much distance hunter would fly if you kill him mid air from gun. So the actual person you save would be really yourself only.

Not necessary feature ofc, considering only 90 downloads of last version :cry:

savagekid 09-06-2009 09:47

Re: [L4D] SkeetAnnounce
 
Woa this is epic! This can help a lot of people learn about the more advanced techniques in L4D. It would be nice to add the distance the hunter was awy from you when you skeeted him, because this can help people adjust their timings. Ex. John Skeeted Tom From A Distance Of 5 Metres.

n0limit 09-06-2009 12:53

Re: [L4D] SkeetAnnounce
 
Quote:

Originally Posted by savagekid (Post 924800)
Woa this is epic! This can help a lot of people learn about the more advanced techniques in L4D. It would be nice to add the distance the hunter was awy from you when you skeeted him, because this can help people adjust their timings. Ex. John Skeeted Tom From A Distance Of 5 Metres.

That would be pretty cool, and I could use the code to build in support for olj's hunter mod.
The only problem is I'm trying to get away from the console spam that occurs when auto-shottying a hunter. If I saved all the attack information, then displayed a cumulative skeet announcement, I don't know how I could let distance factor in.

n0limit 09-07-2009 16:47

Re: [L4D] SkeetAnnounce 1.3
 
A lot of people complained about the amount of output this plugin gives when skeeting during a game, and they were right. community skeets flooded the chat window. I've added a verbosity option now that allows you to set how much information you need, including cumulative skeets which looks much better in real games.

berni 09-12-2009 15:40

Re: [L4D] SkeetAnnounce 1.3
 
Replace

Code:

for(new i=0; i < MAXPLAYERS+1;i++)
with

Code:

for(new i=1; i <= MaxClients; i++)
And add the ConVar Flag FCVAR_DONTRECORD to your version cvar.

n0limit 09-12-2009 21:38

Re: [L4D] SkeetAnnounce 1.3
 
Quote:

Originally Posted by berni (Post 930877)
Replace

Code:

for(new i=0; i < MAXPLAYERS+1;i++)
with

Code:

for(new i=1; i <= MaxClients; i++)
And add the ConVar Flag FCVAR_DONTRECORD to your version cvar.

Done, thanks.

berni 09-13-2009 04:58

Re: [L4D] SkeetAnnounce 1.3
 
approved, greetings ~Berni


All times are GMT -4. The time now is 22:10.

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