It is currently Fri May 31, 2024 5:57 am






marnamai wrote:Killing the !player entity can cause a crash you're better off using "sethealth 0"




Major Banter wrote:I think all allied NPCs have a flag for this specific scenario as well - 'essential?' or something like that.



Armageddon wrote:1. Place a logic_relay give it a name.
2. Go to your NPC and add an output that says OnDeath>Relay01>Trigger.
3. Place an player_loadsaved and an env_message. Give the player_loadsaved a fade duration of 0.6 and hold the fade for 8. Make sure it's color is black and give it a realod delay of 8 as well. Use whichever message you think fits best for the env_message or write your own in the hl2_%language% file. Name both of them.
4. Add an output to your relay OnTrigger>Loadsaved01>Reload add another, OnTrigger>Message01>ShowMessage, give it a delay of 1.50.



Armageddon wrote:You really don't want to kill the player, it's not good like that...



Armageddon wrote:The downside is 1, your text will look bad, and 2, when the player is dead he clicks to reload and the screen is tinted red, and 3, it doesn't fit HL2 gameplay aesthetic.



Users browsing this forum: Bing [Bot]