Untitled

mail@pastecode.io avatar
unknown
plain_text
17 days ago
3.1 kB
2
Indexable
Never
    {on "tag_supplies"
        {if not user_control
            {tags add "supplies"}
        else user_control 
            {tags add "supplies"}
        }
    }

	{on spawn
		{delay 0.4
        	{if linked "ce_drop"
        	    {tags add "no_scavenge"}
        	}
        }

		{delay 2
			{if not able "select"
				{tags add "not_selectable"}
			}	
		}	
		{delay 5
			{call "clear_bad_player_tags"}
		}

		{if user_control
			{if tagged "sabotage_possible"	
				{tags remove "sabotage_possible"}
			}
		}
	}

	{on break
		{if not tagged "exploded"
			{if component "body"
				{tags remove "_user_ally"}
			}
		}
	}

	{on "clear_bad_player_tags"
		{if user_control
			{tags remove "planetarget"}
			{tags remove "ai_air_target"}
			{tags remove "ignore_recrew"}
			{tags remove "ignore_spawn_logic"}
			{tags remove "stage2"}
			{tags remove "stage3"}
			{tags remove "stealing_supplies"}
			{tags remove "_bot"}
			{tags remove "_ai"}
			{tags remove "bot"}
			{tags remove "bot_tank"}
			{tags remove "bot_car"}
			{tags remove "bot_veh"}
            {tags remove "in_spawn_zone_b_2_veh"}
            {tags remove "in_spawn_zone_b_1_veh"}
            {tags remove "in_spawn_zone_b_3_veh"}
            {tags remove "in_spawn_zone_b_4_veh"}
            {tags remove "in_spawn_zone_a_1_veh"}
            {tags remove "in_spawn_zone_a_2_veh"}
            {tags remove "in_spawn_zone_a_3_veh"}
            {tags remove "in_spawn_zone_a_4_veh"}
            {tags remove "moving_to_waypoint_graph"}
		}
	}

	{on "tag_user_ally"
		{tags add "_user_ally"}
		{tags remove "_bot"}
		{tags remove "_ai"}
		{tags remove "bot"}
		{tags remove "bot_car"}
		{tags remove "bot_tank"}
		{tags remove "bot_veh"}
	}

	{on "tag_squad_need_next_order"
		{if tagged "bot_recon"
			{delay 15
				{tags remove "cmp_mg"}
				{tags remove "ai_emplacement_defenses"}
				{tags remove "_user"}
				{tags remove "_user_ally"}
				{tags add "_lua_need_next_order"}
				{delay 12 
					{tags remove "_lua_need_next_order"}
				}
			}
		else
			{if tagged "engine_turned_off"
				{call "engine_on"}
			}
			{tags remove "cmp_mg"}
			{tags remove "ai_emplacement_defenses"}
			{tags remove "_user"}
			{tags remove "_user_ally"}
			{tags add "_lua_need_next_order"}
			{delay 12 
				{tags remove "_lua_need_next_order"}
			}
		}
	}


	{on "ignore_steal_supplies"
		{tags add "stealing_supplies"}
		{delay 60 
			{tags remove "stealing_supplies"}
		}
	}

	{on "ignore_repair_75"
		{tags add "ignore_repair"}
		{tags remove "repair_target"}
		{tags remove "repair_target_tank_crew"}
		{delay 75
			{tags remove "ignore_repair"}
		}
	}

	{on "ignore_recrew_for_x_sec"
		{tags add "ignore_recrew"}
		{tags remove "recrew_action"}
		{tags remove "recrew_action_tank_crew"}
		{tags remove "recrew_action_defender_ai"}
		{tags remove "vehicle_to_recrew_defender_ai"}
		{tags remove "vehicle_to_recrew"}
		{tags remove "vehicle_to_recrew_tank_crew"}
		{delay 120
			{tags remove "ignore_recrew"}
		}
	}
Leave a Comment