Custom Point Of No Return
This will add a custom Point Of No Return to your level to use with PointOfNoReturn Elements.
Adding the hook
- Create a new folder in your map folder called Hooks.
- Inside the Hooks folder, create a new file called tweakdatapd2.lua.
- Copy the following code into the level tag in your map's main.xml file.
Copy the following code into the tweakdatapd2.lua you created earlier:Lua
In the first line, change custom_ponr to something unique, for example: (your level ID)_ponr.
Replace (your ponr id here) with your own ID, has to be unique.
Change the color values to your liking.
Color(RED, GREEN, BLUE, ALPHA)
The color of the text and HUD elements.
The color in which the timer flashes every second.
The color in which the box background flashes.
Set to true to have the box scale with the text. If false, the box will have a set size.
The string ID for the text of your PONR. Needs to be localized.
Overkill usually uses "hud_assault_point_no_ponr id".
* Your localized string can glitch the box if it's too long, even with scale_box = true.