End of game problem


(nib) #1

I’ve got a problem I think only you guys with access to the code can solve. In my map I have a scripted event that occurs at the end of the map. My ending code looks like this:


trigger checkgame
{
	accum 1 abort_if_not_equal 1
	accum 2 abort_if_not_equal 1
	accum 3 abort_if_not_equal 1
	wm_setwinner 1
	trigger truck_body begin2
	wm_endround
	wait 8000
}

The truck_body begin2 code simply moves a model (attached to a script_mover) to a couple different path_corners (i.e. a moving vehicle).

The problem is, while you’re watching the ending event, when the stats screen is up, the entire screen shakes up and down. If you use /cg_draw2d 0 it doesn’t shake. Does anyone have any ideas on this?


(digibob) #2

I’ll take a look at it tonight, any more info on the situation would be helpful though, such as, where is the truck moving relative to the player, etc etc. A sample map would be the most helpful thing :smile:


(digibob) #3

Ok, the actual problem is caused by the player actually still being on the truck when it starts to move off, even thought they are invisible, and the movement of the truck just makes it very jerky.

The simple solution to it is to put a thin layer of clip inside the trcuk where the player will stand on when they jump inside the truck. This way, the player will stand on a platform, and when the truck moves away, it wont take them with it, stopping the jittering.

<font size=-1>[ This Message was edited by: djbob on 2002-09-25 16:17 ]</font>


(nib) #4

Thanks a lot man, that was causing me a real headache. Thanks to socks for taking a look too.