Page 1 of 1
Fall/Damage Slowdown
Posted: Fri Mar 24, 2017 2:03 am
by decompile
Hey,
How can you actually prevent the fall/damage slowdown when you land from higher location?
Mappers do that with filter_damage_type and with a trigger which has "OnStartTouch" "!activator,SetDamageFilter,no_fall,0,-1".
Wondering if I can reproduce it with a plugin on spawn or somehow else.
Re: Fall/Damage Slowdown
Posted: Fri Mar 24, 2017 5:59 am
by decompile
Mhm, I found "m_flVelocityModifier", which is a multiplier applied to the players speed to slow them down when they take damage and "m_flStamina", which was added to an earlier version of cs to try and stop bunny hopping
Re: Fall/Damage Slowdown
Posted: Thu Mar 30, 2017 10:09 am
by decompile
How can I set those properties? Or do they need to be added to the entity data thing
Re: Fall/Damage Slowdown
Posted: Thu Mar 30, 2017 10:34 am
by Ayuto
You can use entity.set_property_float() to set these properties.
Re: Fall/Damage Slowdown
Posted: Tue Apr 04, 2017 10:56 pm
by decompile
Im getting
ValueError: Property "m_flVelocityModifier" not found for entity type "player"
Re: Fall/Damage Slowdown
Posted: Wed Apr 05, 2017 12:35 am
by satoon101
It looks like that property is located at
CCSPlayer.cslocaldata.m_flVelocityModifier. So, you would need to use
cslocaldata.m_flVelocityModifier to get/set the value.
* Edit: also, to get all properties for a specific entity, you can simply run the following:
Syntax: Select all
for x in entity.properties:
print(x)
Re: Fall/Damage Slowdown
Posted: Wed Apr 11, 2018 9:39 am
by decompile
Re: Fall/Damage Slowdown
Posted: Wed Apr 11, 2018 5:23 pm
by Ayuto
I think you need to set it to the classname or targetname of a
filter_damage_type entity.