What is _lms.script ?


(Loffy) #1

Hi!
I am going through the pak0.pk3 and the script files. Want to learn more on scripting. (All I want to do is a “steal the objectives and take them to the ‘goal’”-map, with secondary objectives “construct command post” and “capture forward spawn position”. Will I ever succeed… ?)
I see that there are xxxx_lms.script files. ("goldrush_lms.script, for example.)
I was expecting only .script - files (like “goldrush.script”). What are these _lms.scripts?
Thx in advance!
Loffy
:drink:

Edit. yes, i have read the manual inside radiant and used the search function here on the SD forum. But I cant find any info on _lms.


(sock) #2

The _lms scripts are used for the gametype “Last Man Standing”. All the current ET maps support this game type. The script will change the map so you don’t have critical construction objectives and re-arrange the command posts and health/ammo cabinets into more central areas.

Sock
Feel the :moo:


(Loffy) #3

Thanks for your speedy reply.
L.


(Lanz) #4

Each map seems to need millions of small script files etc, was a bit confusing at first lol :moo:


(Ragnar_40k) #5

It is possible to create different script files for wolfmp and wolfsw gametypes (like you can create a seperate script for wolflms by adding _lms)? As an alternative it would help, when I could check the gametype somehow inside the script (similar to the trigger_if_equal or abort_if_bitset commands for accum variables).


(sock) #6

The gametypes MP and SW use the same script file.

if you want to test gametypes and execute different parts of the script then use the following example:


game_manager
{
	spawn
	{
		wait 1000
		cvar g_gametype trigger_if_equal 2 game_manager gtype2
		cvar g_gametype trigger_if_equal 3 game_manager gtype3
		cvar g_gametype trigger_if_equal 4 game_manager gtype4
		cvar g_gametype trigger_if_equal 5 game_manager gtype5
	}

	trigger gtype2
	{
		wm_announce	"Game Type 2: Single Map"
	}		

	trigger gtype3
	{
		wm_announce	"Game Type 3: Stop-Watch"
	}		

	trigger gtype4
	{
		wm_announce	"Game Type 4: Campaign"
	}		

	trigger gtype5
	{
		// Never going to reach this one, 
		// because LMS is run through its own script ...
		wm_announce	"Game Type 5: Last Medic Standing"
	}		
}

Sock
:moo:


(Ragnar_40k) #7

Thanx! That helps alot! You maked another person happy!
Another question: It is possible to create different briefing messages for stopwatch (3) and for campaign/single map (2/4) gametypes (with an .arena file)?


(sock) #8

No, the cvar script commands dont exist in arena files. TBH not much exists in the arena file that affects the game. The arena file is used for the initial game menu and the loading screen. Once into the game the main script is the real nuts and bolts. I would recommend making the briefing generic to both game types.

Sock
:moo: z0r