aboutsummaryrefslogtreecommitdiff
path: root/bobthebob.testing/scripts/vscripts/_bobtestingfunctions_sp.gnut
blob: 2ad814fe2a0e236208e991479d6582681690780c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
globalize_all_functions

void function TestPlanetExplosion()
{
	PrecacheModel( $"models/vistas/planet_ex_static.mdl" )
	PrecacheModel( $"models/vistas/planet_explosion_animated.mdl" )
	
	entity cam = GetEnt( "skybox_cam_level" )
	cam.SetOrigin( < 7000, 7000, 7000 > ) // arbitrary point
	CreatePropDynamic( $"models/vistas/planet_ex_static.mdl", cam.GetOrigin(), cam.GetAngles() )
	entity explosion = CreatePropDynamic( $"models/vistas/planet_explosion_animated.mdl", cam.GetOrigin(), cam.GetAngles() )
	thread PlayAnim( explosion, "planet_ex_ending" )
}