#point template not spawning entities/changing values

1 messages · Page 1 of 1 (latest)

lone tapir
#

so, i dont really know where to begin with this one, since none of it sounds like it should ever happen.

On my map, I have a train that gets spawned by a point template. the train consists of several parts

  1. Prop_dynamics for the traincart models named TrainCart parented to TrainMover. These have their collision disabled since i had a problem with them getting stuck.
  2. Small Prop_dynamics with rendermode "dont render", also named TrainCart and parented to TrainMover. These have their collision enabled to trigger some trigger_multiples along the way
  3. a func_movelinear with the clip texture named TrainMover. This moves along the length of the track.
  4. a trigger_hurt named TrainHurt parented to TrainMover. This exists just so any contact with the train is lethal.

All of this works fine I know for a fact that generally all of these spawn and spawns as intended,

except, randomly, #1 some of the TrainCard models either dont get spawned or spawn invisble and #2 some of the prop_dynamics with "dont render" do, in fact, render. which models are affected by this is basically random every time the train is spawned. I think some of the traincarts are hit more often then others but its not consistent.

what further complicates this is that the issue only seems to appear in multiplayer. I have no idea whats going on here

lone tapir
#

no errors in the console, no problems in the map

torn fog
#

stick to the func_tracktrain, you can set up the 1st path track so the train teleports to it, that way you can have the train outside the main level in a box then when trigger or made to start forward with a button will teleport to the 1st path, the props and trigger hurt get parented to the func_tracktrain then

lone tapir
#

I can do that

#

I wonder whats causing the issues though since it doesnt really sound related

#

But this is the better way to do it anyway

torn fog
#

it could be a multiplayer issue or just something to do with gmod, try the map in hl2dm to find out if it just a gmod issue

hard epoch
#

@lone tapir go in the point template flags
Untick "Preserve entity names" because with a template, if you spawn more than one time the entities, then you would get entities with the same name existing at the same time (when the flag is ticked)
When it's not ticked, instead entities get unique name with a unique suffix at the end of their name, and it automatically adapt all outputs within the template that target those other entities and adapt all parents hierarchy to use the suffix

#

And so if you plan to spawn more than one time the entities, and they have parenting hierarchy, you have to untick

#

If you don't, the game get confused because now there are two entities with the same name, and so one entity is actually parented to two at the same time. And what usually happen is that the entity kinda warp around between each other and so it looks invisible

#

One thing to note, is that if one entity in the template is never directly referenced by another within that template, then it doesn't get the name fix-up

#

And if you plan to target the spawned entities using. Outputs from outside the template, you will want to use the wildcard * to target them

#

TrainCart* for example

#

Since just TrainCart won't exist
Something like TrainCart&0353 would exist for example