add lukki sprite back, have map respect player colors, try to make colors more reliable, dont send adventure perk to peers

This commit is contained in:
bgkillas 2024-11-23 23:38:56 -05:00
parent e673eb9930
commit 594af87651
14 changed files with 713 additions and 31 deletions

View file

@ -274,6 +274,14 @@ function OnPlayerSpawned( player_entity ) -- This runs when player entity has be
end
local controls_component = EntityGetFirstComponentIncludingDisabled(player_entity, "ControlsComponent")
ComponentSetValue2(controls_component, "enabled", true)
for _, child in ipairs(EntityGetAllChildren(player_entity) or {}) do
local com = EntityGetFirstComponentIncludingDisabled(child, "LuaComponent")
if com ~= nil and ComponentGetValue2(com, "script_source_file") == "data/scripts/perks/map.lua" then
EntityRemoveComponent(child, com)
EntityAddComponent2(child, "LuaComponent", {script_source_file = "data/scripts/perks/map.lua"})
return
end
end
end
local function change_homing(x, y)