fix player erroneously slowing down automatically
This commit is contained in:
parent
1ce864c746
commit
9f936989f3
|
@ -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>() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue