tank troubles


(stealth6) #1

lol I was messing around with a tank and make it run in a certain loop, after many wierd bugs i finally got it to work.
The wierdest bug was that when the tank is driving straight down the X-axis it disappears, but if you slightly move a spline this problem is solved. (you don’t wanna know how long I was looking for that one)

Anyway now i got another weird problem I implemented the tank - course into a larger map, and checked all the targetnames, and put them all back to what they were.
the script is exactly the same as in the small test version.

but now the tank is invisible! (not in the room). Now here comes the strange part When I use noclip and fly backwards out of the room untill the room is invisible(disappears into the greyness) I can see tank tracks driving around iin mid air (following the splines), but then when i fly back to the room they disappear again. it’s really a good case of WTF?!?!?!?!

anybody know what’s causing this.

Here’s the script:


game_manager
{
	spawn 
   	{
		wm_axis_respawntime	1
		wm_allied_respawntime	1
		wm_set_round_timelimit	30

		wm_set_defending_team 0
		wm_setwinner -1
	}	
}

tank
{
	spawn 
	{
		wait 50
		followspline 0 info_train_spline_main1 50000 wait
		playsound sound/vehicles/tank/tank_move.wav looping volume 200
		trigger self move
	}
	trigger move 
	{
		followspline 0 info_train_spline_main1 80 length 32 wait
		followspline 0 info_train_spline_main2 80 length 32 wait
		followspline 0 info_train_spline_main3 80 length 32 wait
		followspline 0 info_train_spline_main4 80 length 32 wait
		followspline 0 info_train_spline_main5 80 length 32 wait
		followspline 0 info_train_spline_main6 80 length 32 wait
		followspline 0 info_train_spline_main7 80 length 32 wait
		followspline 0 info_train_spline_main8 80 length 32 wait
		followspline 0 info_train_spline_main9 80 length 32 wait
		followspline 0 info_train_spline_main10 80 length 32 wait
		followspline 0 info_train_spline_main11 80 length 32 wait
		followspline 0 info_train_spline_main12 80 length 32 wait
		followspline 0 info_train_spline_main13 80 length 32 wait
		followspline 0 info_train_spline_main14 80 length 32 wait
		followspline 0 info_train_spline_main15 80 length 32 wait
		followspline 0 info_train_spline_main16 80 length 32 wait
		followspline 0 info_train_spline_main17 80 length 32 wait
		followspline 0 info_train_spline_main18 80 length 32 wait
		followspline 0 info_train_spline_main19 80 length 32 wait
		followspline 0 info_train_spline_main20 80 length 32 wait
		followspline 0 info_train_spline_main21 80 length 32 wait
		followspline 0 info_train_spline_main22 80 length 32 wait
		followspline 0 info_train_spline_main23 80 length 32 wait
		followspline 0 info_train_spline_main24 80 length 32 wait
		followspline 0 info_train_spline_main25 80 length 32 wait
		followspline 0 info_train_spline_main26 80 length 32 wait
		followspline 0 info_train_spline_main27 80 length 32 wait
		followspline 0 info_train_spline_main28 80 length 32 wait
		followspline 0 info_train_spline_main29 80 length 32 wait
		wait 1

		trigger self move
	}
}

tank_shell
{
	spawn 
	{
		wait 100
		attachtotag tank tag_tank
	}
}

tank_turret
{
	spawn 
	{
		wait 100
		attachtotag tank_shell tag_turret
	}
}

As I said it should work as it already did when it was in a map with just the basic elements but when implemented into a bigger map the problem occured


(-SSF-Sage) #2

Probably the tank’s origin is inside a structural brush. The 2 bugs you described were probably same.


(stealth6) #3

hmm I tried what you said but didn’t work. But I then remembered what diego said about his script mover in netradiant. I think they are bugged in netradiant. cause as he described when i opened the map the first time the tank was WAY off the map, and now after I have moved it back that name tank is still floating outside the map!

EDIT: nope that’s not the cause tried gtk but still the same problem.

EDIT2: found the problem the script_mover doesn’t adjust it’s origin automatically when you move the box, you have to manually type in the same origin as the tank_shell, this fixes the problem :wink: