This modification is an addition to the assembly Double Trouble. The main task of the development was to add the ability to move between interiors when playing in a cooperative. The goal was achieved, besides, now the 2nd player can eat (replenish HP in fast foods).
The problem was that the game would disable the input markers when the 2nd player was in the game. The problem was solved by disconnecting the 2nd player, with the subsequent connection after entering the interior. It is on this principle that the script works, making this process invisible (in terms of actions) to the player. As soon as CJ approaches the entrance to the interior, the 2nd player disappears for a short time, during which the entrance to the interior takes place, after which the 2nd player reappears nearby.
assembly. To move between interiors, the 1st player just needs to go to the door of the building (where the yellow cone enex-marker used to spin). To refresh yourself in fast food playing for the 2nd player, you just need to stand on the red marker (further buttons will be shown on the screen).
▚▚▚▚▚▚▚▚▚▚▚▚ PROBLEMS AND DEFECTS ▞▞▞▞▞▞▞▞▞▞▞▞▞ ① When playing 2 bodies, yellow cones enex markers because there aren't any... ② The script works exclusively on the standard coordinates of enex-markers of the default GTA SA, which means that the add-on is useless to use with globals that replace the map (GTA Underground, GTA United, etc.). ③ When switching between interiors, the 2nd player's combat style and armor amount will be lost.
⑤ Sometimes, when moving between interiors, the 2nd player simply does not appear. ⑥ During missions, when moving between interiors, the 2nd player can take on the appearance of actor -bot that runs with us during the mission. ⑦ During missions, story transitions between interiors occur, due to which players find themselves in different interiors (sometimes resulting in a freeze), solved by disconnecting the 2nd player.