File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -308,4 +308,24 @@ namespace ExtraUtilities::Lua::Patches
308308 }
309309 return 0 ;
310310 }
311+
312+ int GetOrdnanceVelocMode (lua_State* L)
313+ {
314+ lua_pushinteger (L, Patch::velocOnlyInheritFront);
315+ return 1 ;
316+ }
317+
318+ int SetOrdnanceVelocMode (lua_State* L)
319+ {
320+ int mode = luaL_checkinteger (L, 1 );
321+
322+ if (mode < 0 || mode > 1 )
323+ {
324+ luaL_argerror (L, 1 , " Extra Utilities: Invalid Ordnance Mode" );
325+ }
326+
327+ Patch::velocOnlyInheritFront = mode;
328+
329+ return 0 ;
330+ }
311331}
Original file line number Diff line number Diff line change @@ -313,6 +313,8 @@ namespace ExtraUtilities::Lua
313313 { " SetUnitTurbo" , &Patches::SetUnitTurbo },
314314 { " GetOrdnanceVelocInheritance" , &Patches::GetOrdnanceVelocInheritance },
315315 { " SetOrdnanceVelocInheritance" , &Patches::SetOrdnanceVelocInheritance },
316+ { " GetOrdnanceVelocMode" , Patches::GetOrdnanceVelocMode },
317+ { " SetOrdnanceVelocMode" , Patches::SetOrdnanceVelocMode },
316318 { " GetShotConvergence" , &Patches::GetShotConvergence },
317319 { " SetShotConvergence" , &Patches::SetShotConvergence },
318320
You can’t perform that action at this time.
0 commit comments