HL:Enriched is a HL mod that strives to polish and improve the Half-Life experience within the original engine limits.

Report RSS Killtarget a func_tracktrain without crash

How to fix a very rare crash that happens if you killtarget a func_tracktrain.

Posted by on - Advanced Mapping/Technical

I make a habit of documenting rare errors for which the fixes can't be found online, so here is one that took me a while to figure out.

tram

Normally it is possible to killtarget a func_tracktrain if you want it gone for some reason. If you try to save your game or use a trigger_changelevel and the game crashes, then take a look at the following:

trackchange

When saving the game, it will record the current gamestate including the reference to the tracktrain in the func_trackautochange. But with the train killtargeted, this reference is gone and Half-Life will crash. To fix this, make sure you killtarget the func_trackautochange as well.

Post comment Comments
Trempler
Trempler - - 662 comments

usefull info, did not know that either!

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: