Custom Point Of No Return
This will add a custom Point Of No Return to your level to use with PointOfNoReturn Elements.
Shortcuts:
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.
Lua
Copy the following code into the tweakdatapd2.lua you created earlier:
LuaIn 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)
color
Color(r,g,b,a)The color of the text and HUD elements.
timer_flash_color
Color(r,g,b,a)The color in which the timer flashes every second.
attention_color
Color(r,g,b,a)The color in which the box background flashes.
scale_box
BooleanSet to true to have the box scale with the text. If false, the box will have a set size.
text_id
String
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.