Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Custom Player Stats v1.3B53 (MOVED)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
DaxMan
Junior Member
Join Date: Oct 2007
Old 12-14-2009 , 11:52   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B10
#161

Quote:
Originally Posted by muukis View Post
Updated first post. Functionality may still be flawed, but in general it works.
Working for Realism ) Thx alot !
Noticed one thing in Realism, i lost some points ( 30p ) for letting infected in to the safe room, the problem is that i was far away from the safe room i wasn't even near.

thx again muukis

Last edited by DaxMan; 12-14-2009 at 11:55.
DaxMan is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-14-2009 , 13:30   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B10
#162

Quote:
Originally Posted by DaxMan View Post
Working for Realism ) Thx alot !
Noticed one thing in Realism, i lost some points ( 30p ) for letting infected in to the safe room, the problem is that i was far away from the safe room i wasn't even near.

thx again muukis
There are awards that are give from certain actions. Most of the award IDs were changed in L4D2. You probably were given award from some other action and the ID in the plugin was pointing in a wrong award type. There can be bugs like this in the code still. Thanks for letting me know!
muukis is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-14-2009 , 14:19   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B10
#163

This is a small plugin that displays L4D2 award ids to the users. I hope you'll help me find these values. What I am looking for are these:
PHP Code:
if (AwardID == 67// Protect friendly
    
PrintToChat(User"[TEST] Protect friendly (ID = %i)"AwardID);
else if (
AwardID == 68// Pills given
    
PrintToChat(User"[TEST] Pills given (ID = %i)"AwardID);
else if (
AwardID == 69// Adrenaline given
    
PrintToChat(User"[TEST] Adrenaline given (ID = %i)"AwardID);
else if (
AwardID == 85// Incap friendly
    
PrintToChat(User"[TEST] Incap friendly (ID = %i)"AwardID);
else if (
AwardID == 79// Respawn friendly
    
PrintToChat(User"[TEST] Respawn friendly (ID = %i)"AwardID);
else if (
AwardID == 80// Kill Tank with no deaths
    
PrintToChat(User"[TEST] Kill Tank with no deaths (ID = %i)"AwardID);
else if (
AwardID == 86// Left friendly for dead
    
PrintToChat(User"[TEST] Left friendly for dead (ID = %i)"AwardID);
else if (
AwardID == 94// Let infected in safe room
    
PrintToChat(User"[TEST] Let infected in safe room (ID = %i)"AwardID);
else if (
AwardID == 98// Round restart
    
PrintToChat(User"[TEST] Round restart (ID = %i)"AwardID);
else
    
PrintToChat(User"[TEST] Your actions gave you award (ID = %i)"AwardID); 
Attached Files
File Type: sp Get Plugin or Get Source (awards.sp - 387 views - 2.7 KB)

Last edited by muukis; 12-14-2009 at 14:22.
muukis is offline
harmgsn
Member
Join Date: Nov 2009
Old 12-15-2009 , 04:56   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B10
#164

Pills Given = 68
Adrenaline Given = 69
Rescue Friendly = 80 (CURRENTLY MARKED AS 79)
Tank (No Deaths) = 81 (CURRENTLY MARKED AS 80)
Left Friendly for Dead = 86
Friendly Fire = 87
Incap Friendly = 89
Infected in Respawn = 95 (CURRENTLY MARKED AS 94)
Round Restart (All Dead) = 99 (CURRENTLY MARKED AS 98 )


As you can see, only 4 of the Award IDs aren't lining up from this test plugin. Looks like they injected something between 70 adn 80.
harmgsn is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-15-2009 , 05:39   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B10
#165

Quote:
Originally Posted by harmgsn View Post
Pills Given = 68
Adrenaline Given = 69
Rescue Friendly = 80 (CURRENTLY MARKED AS 79)
Tank (No Deaths) = 81 (CURRENTLY MARKED AS 80)
Left Friendly for Dead = 86
Friendly Fire = 87
Incap Friendly = 89
Infected in Respawn = 95 (CURRENTLY MARKED AS 94)
Round Restart (All Dead) = 99 (CURRENTLY MARKED AS 98 )


As you can see, only 4 of the Award IDs aren't lining up from this test plugin. Looks like they injected something between 70 adn 80.
Thanks I will do an update soon.
muukis is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-15-2009 , 09:17   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B12
#166

Did a tweak, which may break some things up, but I have my fingers crossed.

Firstly, the award IDs (read above) were fixed.

Secondly, I added a new way to give penalty for friendly fire. This idea was brought to me by harmgsn. It is based on damage done to friendlies. I created a CVAR for a multiplier which is used in the point loss formula: Score = Damage * Multiplier. So if you scratch your team member for one point of damage, it won't penalize you for max friendly fire penalty (default = 25), but calculates RoundToNearest(1 * 2.0) and you loose 2 points for the action. From another extreme point of view, if you hit your team with fire and for 100 points of damage, you are penalized for 200 points.

The friendly fire feature is delayed (it waits and sums up all the damage you do to your team members), so it won't spam from a continous damaging - maybe it should. After 5 seconds, you receive the fine for attacking team members. If the player disconnects before receiving the penalty, the player is still fined (the SteamID etc. is stored and used after the time has lapsed.)

Last edited by muukis; 12-15-2009 at 09:19.
muukis is offline
SanMan
AlliedModders Donor
Join Date: Feb 2007
Location: Ohio
Old 12-15-2009 , 14:13   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B12
#167

Your doing a nice job, Muukis!!!! ; )
__________________
SanMan is offline
harmgsn
Member
Join Date: Nov 2009
Old 12-15-2009 , 14:19   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B12
#168

The idea was actually Titans He though there had to be a better way to handle FF damage... 1 point of damage means losing 25 points in stats was a bit harsh... so he thought this up.


Nice job muukis! I've loaded it up on my half of the cluster (mine and Titans servers... go lookup the "House of the Dead" servers)
harmgsn is offline
tom_joad
Junior Member
Join Date: Dec 2009
Old 12-15-2009 , 14:46   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B12
#169

Sorry to bother you, I have l4d1 and l4d2 running on the same linux server using 2 different users. I have installed ranking in both but only the l4d1 works. I have 2 web dirs, 2 different db, but when I start l4d2 it doesn't even create the l4d_stats.cfg file.
I use sourcemod-1.3.0-hg2871 and mmsource-1.8.0-hg689. How can I test if there is something wrong?

Thank you
Lelle.
tom_joad is offline
dacomb
Senior Member
Join Date: Oct 2009
Old 12-15-2009 , 15:52   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B15
#170

I may have missed the answer to this question in reading through this post but I'm curious if this can be installed over the top of an existing msleeper stats database and website or do I need to set up a fresh install for it?

Thanks!
dacomb is offline
Closed Thread



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 07:14.


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