Hi!
I’ve ‘just’ gotten into mapscripting (for my Jaymod servers, mainly the No Download server) and did some basic stuff like adding func_fakebrushes, using phiserman’s and nUllSkillZ’s trigger to prevent walljumping (radar, battery, etc.) and messed around with some spawning and command post.
My most recent ‘project’ involves having the tank in Fueldump park in the garage after blowing the side wall. It has some advantages as Allies won’t have a MG on half of the fuel depot, Axis can’t hide behind it anymore but mainly it is just a fun experiment for me to mess with the tank route.
[table=“width: 800”]
So far I’ve gotten the tank to follow the last 12 splines backwards again (spln2_39 to spln2_27) using the direction argument (1) in followspline. At first I wanted to have him drive back a little further using my own splines (spln3) by attaching spln3_1 to spln2_27 and have the tank followspline spln3_1 backwards.
Testing yielded a glitchy tank that at some points disappeared completely from the map (it didn’t go to 0,0,0 as far as I know) including the player seated in the MG, ping 999, only to return a few seconds later. This didn’t happen at the splines I added, but after having turned around in front of the fueldump already and repeated sometimes along the way to the side wall.
Expert paint image to visualise idea:

[/table]
[table=“width: 800”]
Another expert paint image:

I figured maybe the splines were for some reason not meant to be targeted by two other splines so I removed the splines I added (spln3). I then made the tank turn on the spot to return alongside the garage using faceangles (same in front of fueldump) and added another group of splines (spln3 again), the first one being exactly at the same spot spln2_27 is. Testing however resulted in the same problem… tank turns glitchy and disappears completely.
[/table]
Commenting out the create block for the spln3 splines from the spawn in game_manager (and limiting accum 3 etc etc to make sure the tank won’t try to run the splines I added) makes the tank run smoothly again. Furthermore the tank already starts to glitch before it reaches any part I touched. That makes me believe there is no problem with the script running the tank (hence not posting the script), but with creating ‘custom splines’.
TLDR: Aren’t ‘custom’ splines meant to be added via mapscript?
Answer: No, use Gotomarker in combination with path_corner instead
Thanks in advance,
Moanraker.
