Answered How to change the Speed Cola / Double Tap reloading speed? GSC

xasgs22

New Member
Messages
6
Reaction score
2
Points
3
I want to know how to change the Speed Cola reloading speed, the DoubleTap, and probably other perks, please help!
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
I want to know how to change the Speed Cola reloading speed, the DoubleTap, and probably other perks, please help!
I think you can do this via the dvars: (I didn't test them)

perk_weapRateMultiplier
Double Tap 'speed' multiplier | default value: 0.75

perk_weapReloadMultiplier
Speed Cola reload 'speed' multiplier | default value: 0.5

You need to have the perks on the player to use them! :grinning:

You can set Dvar through this function -> SetDvar(<dvar>,<value>)


Regards,
CabCon.


 

xasgs22

New Member
Messages
6
Reaction score
2
Points
3
But how can I make it like when I start the map it puts automatically? I don't want to put that in the console everytime I start my map, thank you.
 

xasgs22

New Member
Messages
6
Reaction score
2
Points
3
Or I don't know if I should put that in my _clientids.gsc
I'm new at this, do you have Skype so I can share you my screen? Thank you.
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
But how can I make it like when I start the map it puts automatically? I don't want to put that in the console everytime I start my map, thank you.
You can create a mod, who will set the dvars every round. If you're interested in that, you should take a look inside our startup tutorial thread where you learn how to create a mod for zombie: Tutorial - Black Ops 3 Zombie GSC Modding - How to start coding a mod? Startup Mod +Download | CabConModding

Or I don't know if I should put that in my _clientids.gsc
I'm new at this, do you have Skype so I can share you my screen? Thank you.
I'm sorry I get a lot of questions everyday, I can not support everyone by screen share. :smile: If you need help with the mod -> use our forums! :smile: I'm trying to give you there the best support as possible! I hope you can understand that :peace:!

Regards,
CabCon.
 

xasgs22

New Member
Messages
6
Reaction score
2
Points
3
Ok np, and yeah, I've followed that thread, I did that, but what I have to do now?
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
Ok np, and yeah, I've followed that thread, I did that, but what I have to do now?
I will create an example _clientids.gsc :smile: Where you can see how to do it :smile:!
 

Collie

Veteran
Messages
9
Reaction score
12
Points
788
Hi xasgs22, I am the creator of the mod you linked above. If you just want a mod to change the perks, then I will provide you with the script to do so. Since you said that you followed the guide Cabcon linked, I will just get you to replace the text contained in your mod's _clientids.gsc
Just copy this code and replace the existing text in _clientids.gsc:
PHP:
#using scripts\codescripts\struct;
#using scripts\shared\callbacks_shared;
#using scripts\shared\system_shared;
#insert scripts\shared\shared.gsh;

#namespace clientids;

REGISTER_SYSTEM( "clientids", &__init__, undefined )
  
function __init__()
{
    callback::on_start_gametype( &init );
    callback::on_connect( &on_player_connect );
}  

function init()
{
    // this is now handled in code ( not lan )
    // see s_nextScriptClientId
    level.clientid = 0;
}

function on_player_connect()
{
    thread perks();
    self.clientid = matchRecordNewPlayer( self );
    if ( !isdefined( self.clientid ) || self.clientid == -1 )
    {
        self.clientid = level.clientid;
        level.clientid++;    // Is this safe? What if a server runs for a long time and many people join/leave
    }
}

function perks()
{
    SetDvar("sv_cheats", 1);
    SetDvar( "perk_weapReloadMultiplier", 0.35 );
    SetDvar( "perk_weapRateMultiplier", 0.5 );
    SetDvar( "perk_weapSpreadMultiplier", 0.3 );
}

perk_weapReloadMultiplier = Speed Cola's reload speed
perk_weapRateMultiplier = Double Tap's fire speed
perk_weapSpreadMultiplier = Deadshot Daiquiri's hip-fire spread
All the numbers are set to the ones I use in my mod. The lower the number, the more effective the perk is (Reloading faster with speed cola, shooting faster with Double Tap, etc). Feel free to experiment with different numbers. If you have any other questions just let me know.
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
Hi xasgs22, I am the creator of the mod you linked above. If you just want a mod to change the perks, then I will provide you with the script to do so. Since you said that you followed the guide Cabcon linked, I will just get you to replace the text contained in your mod's _clientids.gsc
Just copy this code and replace the existing text in _clientids.gsc:
PHP:
#using scripts\codescripts\struct;
#using scripts\shared\callbacks_shared;
#using scripts\shared\system_shared;
#insert scripts\shared\shared.gsh;

#namespace clientids;

REGISTER_SYSTEM( "clientids", &__init__, undefined )
 
function __init__()
{
    callback::on_start_gametype( &init );
    callback::on_connect( &on_player_connect );
} 

function init()
{
    // this is now handled in code ( not lan )
    // see s_nextScriptClientId
    level.clientid = 0;
}

function on_player_connect()
{
    thread perks();
    self.clientid = matchRecordNewPlayer( self );
    if ( !isdefined( self.clientid ) || self.clientid == -1 )
    {
        self.clientid = level.clientid;
        level.clientid++;    // Is this safe? What if a server runs for a long time and many people join/leave
    }
}

function perks()
{
    SetDvar("sv_cheats", 1);
    SetDvar( "perk_weapReloadMultiplier", 0.35 );
    SetDvar( "perk_weapRateMultiplier", 0.5 );
    SetDvar( "perk_weapSpreadMultiplier", 0.3 );
}

perk_weapReloadMultiplier = Speed Cola's reload speed
perk_weapRateMultiplier = Double Tap's fire speed
perk_weapSpreadMultiplier = Deadshot Daiquiri's hip-fire spread
All the numbers are set to the ones I use in my mod. The lower the number, the more effective the perk is (Reloading faster with speed cola, shooting faster with Double Tap, etc). Feel free to experiment with different numbers. If you have any other questions just let me know.
Top answer! :y: +rep
 
Top