m_flStepSize not found (csgo)

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
Kami
Global Moderator
Posts: 263
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

m_flStepSize not found (csgo)

Postby Kami » Wed Jan 13, 2016 4:59 pm

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?
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Wed Jan 13, 2016 5:23 pm

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>
User avatar
Kami
Global Moderator
Posts: 263
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Postby Kami » Wed Jan 13, 2016 5:28 pm

Oh okay, I did not know that. Thank you very much!

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 124 guests