• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Remove “Spawn near backpack”

Has anyone managed to Mod out the “Spawn near backpack” option as it’s killing my fear of dying and venturing away from my base. I know I can just not click it but sometimes the temptation to click would be to great.

 
The code to show the option is in config/XUi_Menu/windows.xml. Around line 2500.

<rect visible="{buttonsVisible}" pos="0,40" >
<panel name="header" pos="0,0" height="43" depth="2" createuipanel="true" backgroundspritename="ui_game_panel_header" bordercolor="[black]" borderthickness="3" >
<label style="header.name" pos="6,-6" width="550" text_key="respawnTitleMessage" />
</panel>

<simplebutton name="btnOption1" depth="3" pos="200,-70" pivot="center" width="400" height="42" font_size="36" caption_key="lblSpawnOnBedroll" />
<simplebutton name="btnOption2" depth="3" pos="200,-130" pivot="center" width="400" height="42" font_size="36" caption_key="lblSpawnNearBedroll" />
<simplebutton name="btnOption3" depth="3" pos="200,-190" pivot="center" width="400" height="42" font_size="36" caption_key="lblSpawnNearBackpack" />
</rect>






Without testing the resultant look and feel, you could probably just delete the line:

<simplebutton name="btnOption3" depth="3" pos="200,-190" pivot="center" width="400" height="42" font_size="36" caption_key="lblSpawnNearBackpack" />




Cheers

 
Thanks for pointing me in the right direction, unfortunately, when removing that line, the game doesn't load correctly.

 
Last edited by a moderator:
With permadeath enabled, there is no option, and you automatically spawn near backpack.

It would be nice to have an option to spawn elsewhere.

 
Back
Top