pk3 problem


(sapience_nl) #1

in the pk3 file is a map called ‘maps’.
in maps is a .script file. How do i use it? i want to use it as a team deathmatch map. what do i have to write in .script and .objdata file?

thank you very much, :drink:

Sapience

btw, map name is confrontation


(nUllSkillZ) #2

Do you have any objectives (secondary one’s in this case) as construct command post or construct mg etc.?
Or are there no objectives at all?


(kamikazee) #3

It’s a deathmatch map, so the only objective would be “frag the enemy”.

Have you actually made a level? Since every level needs it’s own script, you could copy snippets of other scripts though.
A script is not necessary if you don’t use it. It’s only there to allow a mapper to do stuff in ‘runtime’, whilst the level can only be changed at compile-time. The script allso allows things you can’t do with level entities alone, like keeping variables, checking different things going, easier animation, etc.

The .objdata is a file to put you’re objectives in. I believe however that you need a tiny script file to set the number of objectives. Then the .objdata gets read and will be put in the player’s limbo menu’s. How to make these files can be found by using the SEARCH button or looking in the large sticky in this forum!


(sapience_nl) #4

well, my search on this forum, nor google, turned out a solution. I just need a script in the .script and .objdata files to give the map the following objective: frag the enemy (nice said, kamikazee :drink: )
this is my first map, and it is mostly a try out to find out whatever is possible. Thankyou for those who deliver me a script.
thanks


(kamikazee) #5

Look here to Ifurita’s website: http://www.planetwolfenstein.com/4newbies/ Go to the tutorials section, and look at tutorial 10 “# Fixing Up The Limbo Screens”. There’s some info on setting up objectives.


(nUllSkillZ) #6

Minimum objdata file:


// Set scenario information
wm_mapdescription allied "YOUR DESCRIPTION FOR THE LIMBO OF ALLIED PLAYERS HERE"
wm_mapdescription axis "YOUR DESCRIPTION FOR THE LIMBO OF AXIS PLAYERS HERE"
wm_mapdescription neutral "YOUR DESCRIPTION FOR THE LIMBO FOR SPECTATORS HERE"

Minimum script file:


game_manager
{
	spawn
	{
		// Game rules
		wm_axis_respawntime	30
		wm_allied_respawntime	30
		wm_set_round_timelimit	30

		// Stopwatch mode defending team (0=Axis, 1=Allies)
		wm_set_defending_team	0

		// Winner on expiration of round timer (0=Axis, 1=Allies)
		wm_setwinner	0

		wait 2000
	}

	trigger timelimit_hit
	{
		// none of the teams win
		wm_setwinner -1
		wm_endround
	}
}

Note:
You must have a “script_multiplayer”-entity within your map.
This entity must have the following key / value pair:

[ul]
[li]key: scriptname
[/li][li]value: game_manager
[/li][/ul]