Raised This Month: $32 Target: $400
 8% 

Disable losing points for dieing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
boone2134
Junior Member
Join Date: Jan 2014
Old 06-30-2015 , 21:34   Disable losing points for dieing
Reply With Quote #1

Hello,
Is there a way to disable the points one loses completely for dieing in example, a deathrun server?
Is there a way to edit one of the files in the scripts folder to do this?
Thank you
boone2134 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 06-30-2015 , 22:00   Re: Disable losing points for dieing
Reply With Quote #2

1. Go to your Admin panel
2. Select "Game Settings"
3. Select your game
4. Click "Edit Servers"
5. Click "Configure" on your deathrun server
6. Find "SuicidePenalty" and set it to 0.
7. Reload/restart the HLstatsX:CE daemon.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
boone2134
Junior Member
Join Date: Jan 2014
Old 07-01-2015 , 10:58   Re: Disable losing points for dieing
Reply With Quote #3

Quote:
Originally Posted by arne1288 View Post
1. Go to your Admin panel
2. Select "Game Settings"
3. Select your game
4. Click "Edit Servers"
5. Click "Configure" on your deathrun server
6. Find "SuicidePenalty" and set it to 0.
7. Reload/restart the HLstatsX:CE daemon.
Wow! That did it! Thank you so much
boone2134 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 07-01-2015 , 14:11   Re: Disable losing points for dieing
Reply With Quote #4

You're welcome!

Keep in mind, as the setting name "suicide penalty" suggests, this will also remove the penalty from players using "kill" in console or other things that cause the game engine to count it as suicide.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
boone2134
Junior Member
Join Date: Jan 2014
Old 07-04-2015 , 12:16   Re: Disable losing points for dieing
Reply With Quote #5

Quote:
Originally Posted by arne1288 View Post
You're welcome!

Keep in mind, as the setting name "suicide penalty" suggests, this will also remove the penalty from players using "kill" in console or other things that cause the game engine to count it as suicide.
Ok, got it.
One more thing I noticed,
I set on my actions panel for MVP's 1, 2 and 3 to only count for the red team by setting them to red, but it does not seem to make a difference from what I can tell. How can this be solved?
Thank you again
boone2134 is offline
uNg0veRNab1e
Member
Join Date: Jan 2013
Location: Russia, Siberia
Old 07-12-2015 , 02:56   Re: Disable losing points for dieing
Reply With Quote #6

Probably in superlogs by adding a check of MVP's team and skipping it if MVP's team is blue.

Maybe try to change:
PHP Code:
    if(b_actions)
    {

        
LogPlayerEvent(GetEventInt(event"player_1"), "triggered""mvp1");
        
LogPlayerEvent(GetEventInt(event"player_2"), "triggered""mvp2");
        
LogPlayerEvent(GetEventInt(event"player_3"), "triggered""mvp3");
    } 
to
PHP Code:
    if(b_actions)
    {
        if(
GetClientTeam(GetEventInt(event"player_1"))!=2//not blue
            
LogPlayerEvent(GetEventInt(event"player_1"), "triggered""mvp1");
        if(
GetClientTeam(GetEventInt(event"player_2"))!=2//not blue
            
LogPlayerEvent(GetEventInt(event"player_2"), "triggered""mvp2");
        if(
GetClientTeam(GetEventInt(event"player_3"))!=2//not blue
            
LogPlayerEvent(GetEventInt(event"player_3"), "triggered""mvp3");
    } 
After this it should not log blue MVP.
__________________

Last edited by uNg0veRNab1e; 07-12-2015 at 03:06.
uNg0veRNab1e is offline
Send a message via Skype™ to uNg0veRNab1e
boone2134
Junior Member
Join Date: Jan 2014
Old 07-14-2015 , 23:50   Re: Disable losing points for dieing
Reply With Quote #7

Quote:
Originally Posted by uNg0veRNab1e View Post
Probably in superlogs by adding a check of MVP's team and skipping it if MVP's team is blue.

Maybe try to change:
PHP Code:
    if(b_actions)
    {

        
LogPlayerEvent(GetEventInt(event"player_1"), "triggered""mvp1");
        
LogPlayerEvent(GetEventInt(event"player_2"), "triggered""mvp2");
        
LogPlayerEvent(GetEventInt(event"player_3"), "triggered""mvp3");
    } 
to
PHP Code:
    if(b_actions)
    {
        if(
GetClientTeam(GetEventInt(event"player_1"))!=2//not blue
            
LogPlayerEvent(GetEventInt(event"player_1"), "triggered""mvp1");
        if(
GetClientTeam(GetEventInt(event"player_2"))!=2//not blue
            
LogPlayerEvent(GetEventInt(event"player_2"), "triggered""mvp2");
        if(
GetClientTeam(GetEventInt(event"player_3"))!=2//not blue
            
LogPlayerEvent(GetEventInt(event"player_3"), "triggered""mvp3");
    } 
After this it should not log blue MVP.
Thank you! I'll try this out
boone2134 is offline
uNg0veRNab1e
Member
Join Date: Jan 2013
Location: Russia, Siberia
Old 07-15-2015 , 10:02   Re: Disable losing points for dieing
Reply With Quote #8

My bad, it must be 3, not 2.
2 is red, 3 is blue.
PHP Code:
    if(b_actions)
    {
        if(
GetClientTeam(GetEventInt(event"player_1"))!=3//not blue
            
LogPlayerEvent(GetEventInt(event"player_1"), "triggered""mvp1");
        if(
GetClientTeam(GetEventInt(event"player_2"))!=3//not blue
            
LogPlayerEvent(GetEventInt(event"player_2"), "triggered""mvp2");
        if(
GetClientTeam(GetEventInt(event"player_3"))!=3//not blue
            
LogPlayerEvent(GetEventInt(event"player_3"), "triggered""mvp3");
    } 

__________________

Last edited by uNg0veRNab1e; 07-16-2015 at 15:30.
uNg0veRNab1e is offline
Send a message via Skype™ to uNg0veRNab1e
Reply


Thread Tools
Display Modes

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 17:35.


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