Raised This Month: $202 Target: $400
 50% 

Round Bonus Remover v1.3 ( Remove Bonus For Win/Lose Rounds)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
WATCH_DOGS UNITED
Member
Join Date: Nov 2020
Location: Matrix
Old 12-19-2020 , 10:55   Round Bonus Remover v1.3 ( Remove Bonus For Win/Lose Rounds)
Reply With Quote #1

Round Bonus Remover
v1.3


For Counter-Strike 1.6 and Condition-Zero.

Credits


Ark_Procession - checking and reporting bugs
ConnorMcLeod - some strategies of the "No RoundEnd Money Bonus" plugin
Bugsy - get players
SonicSonedit - round count


Description


This plugin is an alternative to ConnorMcLeod's No RoundEnd Money Bonus and Exolent's No Round Win Money plugins.

The difference here is that bots are also affected and you can choose by team.

PHP Code:
New in v1.3:

Now the HUD money effect is exactly as the default game display even if player money is $16000. 
RESULTS WITH DIFFERENT MODULES

PHP Code:
MODULE                       |            <cstrike>           |           <fakemeta_util>       |     <fakemeta>

.
SMA SIZE                    |              1,70 KB           |             1,79 KB             |       1,79 KB

.AMXX OUTPUT                 |              1,23 KB           |             1,41 KB             |       1,27 KB

HUD EFFECT 
ROUND START )   | Yellow differs from original Green except when money 16000 Perfectly as original 

Commands


rbr_t - allows terrorists to be affected. Default Value: 1 (On)
rbr_ct - allows counter-terrorists to be affected. Default Value: 1 (On)


Note: We recommend that you use Money Manager if you want more money-related commands.


TESTED USING AMX MOD X V1.8.2 | WORKING PERFECTLY


CODE METHOD


PHP Code:
/*
==============================================================================================
C:\
=   Round Bonus Remover - AMX Mod X script. Copyright  2020-2021, WATCH_DOGS UNITED
=
=   Credits:
=   Ark_Procession - checking and reporting bugs
=   ConnorMcLeod   - some strategies of the "No RoundEnd Money Bonus" plugin
=   Bugsy          - get players
=   SonicSonedit   - round count
=
==============================================================================================
*/
    #include < amxmisc >
    #include < fakemeta >

    #define OFFSET_MONEY 115

    
new round_count g_pcvar_rbr_t g_pcvar_rbr_ct iPlayers 32 ] , iNum iPlayer money 33 ];

public 
plugin_init ( )
{
    
register_plugin "Round Bonus Remover" "1.3" "WATCH_DOGS UNITED" )
    
register_event "HLTV" "get_last_round_money" "a" "1=0" "2=0" )
    
register_event "ResetHUD" "give_last_round_money" "b" )
    
register_event "TextMsg" "restartRound" "a" "2&#Game_C" "2&#Game_w" )
    
g_pcvar_rbr_t register_cvar "rbr_t" "1" )
    
g_pcvar_rbr_ct register_cvar "rbr_ct" "1" )
}

public 
restartRound ( )
{
    
round_count 0
}

public 
get_last_round_money ( )
{
    
round_count++
    
get_players iPlayers iNum "h" );

    for ( new 
iNum i++ )
    {
        
iPlayer iPlayers ];
        
        
money iPlayer ] = get_pdata_int iPlayer OFFSET_MONEY );
    }
}

public 
give_last_round_money ( )
{
    if ( 
round_count >= )
    {
        
get_players iPlayers iNum "h" );

        for ( new 
iNum i++ )
        {
            
iPlayer iPlayers ];

            if ( 
get_pcvar_num g_pcvar_rbr_t ) && get_user_team iPlayer ) == || get_pcvar_num g_pcvar_rbr_ct ) && get_user_team (iPlayer ) == )
            {
                
set_pdata_int iPlayer OFFSET_MONEY money iPlayer ] );
            }
        }
    }

Attached Files
File Type: sma Get Plugin or Get Source (round_bonus_remover.sma - 5 views - 1.8 KB)
__________________
Copyright 2020-2021, WATCH_DOGS UNITED All Rights Reversed

Last edited by WATCH_DOGS UNITED; 09-04-2021 at 08:51. Reason: Optimization != optimization
WATCH_DOGS UNITED is offline
WATCH_DOGS UNITED
Member
Join Date: Nov 2020
Location: Matrix
Old 08-13-2021 , 20:04   Re: Round Bonus Removers v1.1
Reply With Quote #2

v1.1 released: Code optimized
__________________
Copyright 2020-2021, WATCH_DOGS UNITED All Rights Reversed
WATCH_DOGS UNITED is offline
WATCH_DOGS UNITED
Member
Join Date: Nov 2020
Location: Matrix
Old 08-15-2021 , 17:59   Re: Round Bonus Remover v1.2 ( Remove Bonus For Win/Lose Rounds)
Reply With Quote #3

v1.2 released:

PHP Code:
Optimized from <cstriketo <fakemeta_util>
Now the HUD money effect is exactly as the default game display
__________________
Copyright 2020-2021, WATCH_DOGS UNITED All Rights Reversed
WATCH_DOGS UNITED is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-16-2021 , 04:26   Re: Round Bonus Remover v1.2 ( Remove Bonus For Win/Lose Rounds)
Reply With Quote #4

Since when is converting anything to fakemeta_util an optimization?
__________________
HamletEagle is offline
WATCH_DOGS UNITED
Member
Join Date: Nov 2020
Location: Matrix
Old 08-16-2021 , 10:23   Re: Round Bonus Remover v1.2 ( Remove Bonus For Win/Lose Rounds)
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
Since when is converting anything to fakemeta_util an optimization?


This was not stated. Optimization refers to the result of the plugin's operation. We upgraded to v1.3 using <fakemeta> and the results were even better. Check the results table:

PHP Code:
MODULE                       |            <cstrike>           |           <fakemeta_util>       |     <fakemeta>

.
SMA SIZE                    |              1,70 KB           |             1,79 KB             |       1,79 KB

.AMXX OUTPUT                 |              1,23 KB           |             1,41 KB             |       1,27 KB

HUD EFFECT 
ROUND START )   | Yellow differs from original Green except when money 16000 Perfectly as original 
__________________
Copyright 2020-2021, WATCH_DOGS UNITED All Rights Reversed

Last edited by WATCH_DOGS UNITED; 08-16-2021 at 10:26.
WATCH_DOGS UNITED is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-17-2021 , 10:16   Re: Round Bonus Remover v1.3 ( Remove Bonus For Win/Lose Rounds)
Reply With Quote #6

Are we really calling 0.04KB difference in file sizes an "optimization"? Please don't.
__________________
HamletEagle is offline
WATCH_DOGS UNITED
Member
Join Date: Nov 2020
Location: Matrix
Old 08-17-2021 , 13:27   Re: Round Bonus Remover v1.3 ( Remove Bonus For Win/Lose Rounds)
Reply With Quote #7

Quote:
Originally Posted by HamletEagle View Post
Are we really calling 0.04KB difference in file sizes an "optimization"? Please don't.
Quote:
Originally Posted by WATCH_DOGS UNITED View Post
This was not stated. Optimization refers to the result of the plugin's operation. We upgraded to v1.3 using <fakemeta> and the results were even better. Check the results table:

PHP Code:
MODULE                       |            <cstrike>           |           <fakemeta_util>       |     <fakemeta>

.
SMA SIZE                    |              1,70 KB           |             1,79 KB             |       1,79 KB

.AMXX OUTPUT                 |              1,23 KB           |             1,41 KB             |       1,27 KB 
HUD EFFECT ( ROUND START ) | Yellow - differs from original | Green except when money = 16000 | Perfectly as original
__________________
Copyright 2020-2021, WATCH_DOGS UNITED All Rights Reversed
WATCH_DOGS UNITED is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-17-2021 , 13:54   Re: Round Bonus Remover v1.3 ( Remove Bonus For Win/Lose Rounds)
Reply With Quote #8

You didn't optimize anything, let's just make this clear. All you did is instead of using cstrike natives to set the offset you are now using fakemeta.
__________________
HamletEagle is offline
WATCH_DOGS UNITED
Member
Join Date: Nov 2020
Location: Matrix
Old 08-17-2021 , 14:07   Re: Round Bonus Remover v1.3 ( Remove Bonus For Win/Lose Rounds)
Reply With Quote #9

Quote:
Originally Posted by HamletEagle View Post
You didn't optimize anything, let's just make this clear. All you did is instead of using cstrike natives to set the offset you are now using fakemeta.

If making the HUD effect equal to the original is not called optimization so let's do the following:

PHP Code:
New in v1.3
Optimized from <fakemeta_util> to <fakemeta>
PHP Code:
Now the HUD money effect is exactly as the default game display even if player money is $16000. 
__________________
Copyright 2020-2021, WATCH_DOGS UNITED All Rights Reversed
WATCH_DOGS UNITED is offline
WATCH_DOGS UNITED
Member
Join Date: Nov 2020
Location: Matrix
Old 08-17-2021 , 14:09   Re: Round Bonus Remover v1.3 ( Remove Bonus For Win/Lose Rounds)
Reply With Quote #10

How long does it take for a plugin to be approved?
__________________
Copyright 2020-2021, WATCH_DOGS UNITED All Rights Reversed
WATCH_DOGS UNITED is offline
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 07:29.


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