Expose 5 land flags to Lua for use with SetGearCollisionMask
authorWuzzy <Wuzzy2@mail.ru>
Tue, 20 Feb 2018 15:31:47 +0100
changeset 13037 3718637c14be
parent 13036 434bcdd9562c
child 13038 356995c8c48b
Expose 5 land flags to Lua for use with SetGearCollisionMask
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Tue Feb 20 14:03:46 2018 +0100
+++ b/hedgewars/uScript.pas	Tue Feb 20 15:31:47 2018 +0100
@@ -3730,11 +3730,17 @@
 ScriptSetInteger('aihUsualProcessing', aihUsualProcessing);
 ScriptSetInteger('aihDoesntMatter'   , aihDoesntMatter);
 
-// land flags
+// land flags (partial)
 ScriptSetInteger('lfIndestructible', lfIndestructible);
 ScriptSetInteger('lfIce'           , lfIce);
 ScriptSetInteger('lfBouncy'        , lfBouncy);
 
+ScriptSetInteger('lfLandMask'      , lfLandMask);
+ScriptSetInteger('lfCurrentHog'    , lfCurrentHog);
+ScriptSetInteger('lfHHMask'        , lfHHMask);
+ScriptSetInteger('lfNotHHObjMask'  , lfNotHHObjMask);
+ScriptSetInteger('lfAllObjMask'    , lfAllObjMask);
+
 // register functions
 lua_register(luaState, _P'HideHog', @lc_hidehog);
 lua_register(luaState, _P'RestoreHog', @lc_restorehog);