Page 1 of 1

m_flStepSize not found (csgo)

Posted: Wed Jan 13, 2016 4:59 pm
by Kami
Hey guys,

I'm trying to change the players Stepsize in CSGO with this:

Syntax: Select all

from players.entity import Player
from commands.say import SayCommand
from entities.entity import Entity

@SayCommand('test')
def _test_command(command, index, team=None):
player = Player(index)
player.set_property_float('m_flStepSize', 100.0)



but it gives me the error "ValueError: Property 'm_flStepSize' not found for entity type 'player'"

I used Sourcemod to dump all netprops, datamaps etc and it seems that m_flStepSize should be there.

Did I do something wrong or doesn't m_flStepSize exist in CSGO?

Posted: Wed Jan 13, 2016 5:23 pm
by Ayuto
You have to use the full path in SP.

Syntax: Select all

@SayCommand('test')
def _test_command(command, index, team=None):
player = Player(index)
player.set_property_float('m_Local.m_flStepSize', 100.0)
Btw. you can also use SP to dump datamaps and server classes.

Code: Select all

// Dump datamaps
sp dump datamaps <file name>

// Dump server classes
sp dump server_classes <file name>

Posted: Wed Jan 13, 2016 5:28 pm
by Kami
Oh okay, I did not know that. Thank you very much!