fix player erroneously slowing down automatically

This commit is contained in:
yuni 2024-06-07 00:42:46 +02:00
parent 1ce864c746
commit 9f936989f3
2 changed files with 7 additions and 0 deletions

View file

@ -554,6 +554,9 @@ pub fn load_defs(mut ew_spawn: EventWriter<SpawnEvent>) {
continue;
}
}
["wants", "maxrotation", "none"] => {
state.wants_maxrotation = None;
}
["wants", "maxrotation", value] => {
// NOTE: requires an engine to slow down velocity
if let Ok(value_float) = value.parse::<f64>() {
@ -563,6 +566,9 @@ pub fn load_defs(mut ew_spawn: EventWriter<SpawnEvent>) {
continue;
}
}
["wants", "maxvelocity", "none"] => {
state.wants_maxvelocity = None;
}
["wants", "maxvelocity", value] => {
// NOTE: requires an engine to slow down velocity
if let Ok(value_float) = value.parse::<f64>() {

View file

@ -262,6 +262,7 @@ actor 0 593051 0 suitv2
orbit 221900e3 0.338
player yes
id player
wants maxvelocity none
oxygen 0.008
health 0.3
rotationy 135