diff --git a/src/cmd.rs b/src/cmd.rs index a0c4977..54b74c1 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -554,6 +554,9 @@ pub fn load_defs(mut ew_spawn: EventWriter) { 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::() { @@ -563,6 +566,9 @@ pub fn load_defs(mut ew_spawn: EventWriter) { 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::() { diff --git a/src/data/defs.txt b/src/data/defs.txt index 5e6f953..2d75984 100644 --- a/src/data/defs.txt +++ b/src/data/defs.txt @@ -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