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.
Fall/Damage Slowdown
Re: Fall/Damage Slowdown
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
How can I set those properties? Or do they need to be added to the entity data thing
Re: Fall/Damage Slowdown
You can use entity.set_property_float() to set these properties.
Re: Fall/Damage Slowdown
Im getting
ValueError: Property "m_flVelocityModifier" not found for entity type "player"
ValueError: Property "m_flVelocityModifier" not found for entity type "player"
Re: Fall/Damage Slowdown
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:
* 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
Just came across http://wiki.sourcepython.com/developing/modules/entities.entity.html?highlight=damage_filter#entities.entity.BaseEntity.damage_filter. This is actually perfect for this, but how can I set it to https://developer.valvesoftware.com/wiki/Damage_types#Fall?
Re: Fall/Damage Slowdown
I think you need to set it to the classname or targetname of a filter_damage_type entity.
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 83 guests