Closed dronelektron closed 1 year ago
I have added a fix (#477) for this problem, but if you rewrite the ini to something like dod_desired_player_class, then you should be able to use the desired_player_class(i.e. Player.dod_desired_player_class
) without requiring the fix.
Yea, I've tested this already (using different name in the .ini
file) but desired_player_class
is more preferable.
Also, this file also contains player_class
and desired_player_class
, but do those properties read from .ini
or are they also taken from C++
code? Maybe they are useless too? Just wondering.
The ini is a remnant before C++ native was implemented.
I want to get "desired_player_class" using the following code:
But I get the error:
I guess it's because of this:
https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/src/core/modules/players/players_entity.cpp#L746
Then I've tried to add this property to this file:
https://github.com/Source-Python-Dev-Team/Source.Python/blob/master/addons/source-python/data/source-python/entities/orangebox/dod/CDODPlayer.ini
Like this:
But this property doesn't work either, looks like SP won't override it