random respawn-place of player in deathmatch

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
zed
Private
Posts: 2
Joined: Fri Aug 08, 2003 5:19 pm

random respawn-place of player in deathmatch

Post by zed »

how to do this? with info_player_start don't work ;(
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

info_player_deathmatch
Admin .MAP Forums
Image
Head above heels.
zed
Private
Posts: 2
Joined: Fri Aug 08, 2003 5:19 pm

Post by zed »

where can i download an example .map?
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Dont think there is one as it is really simple:

( Note: if the file entdefs.pk3 is not placed in the <MOHAA>/main folder, this will mot work )

At the same place that you find the info_player_start ( info->player->start ), you will also find info_player_axis, info_player_allies, info_player_deathmatch and info_player_intermisssion.

Place a lot of info_player_deathmatch in your map ( a few units above ground ). These will then be the places that is selected at random to spawn players in a FreeForAll game.

Also put in info_player_axis, info_player_allies and info_player_allies... these are used in Objective, TeamDeathMatch and RoundBased games. Place the Axis one one side, and Allies on the other is a bood practice...

A info_player_intermisssion decides the view to be shown when the game is over, and the scores are shown.
Admin .MAP Forums
Image
Head above heels.
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Post by WarTech »

Bjarne BZR wrote:Dont think there is one as it is really simple:

( Note: if the file entdefs.pk3 is not placed in the <MOHAA>/main folder, this will mot work )

At the same place that you find the info_player_start ( info->player->start ), you will also find info_player_axis, info_player_allies, info_player_deathmatch and info_player_intermisssion.

Place a lot of info_player_deathmatch in your map ( a few units above ground ). These will then be the places that is selected at random to spawn players in a FreeForAll game.

Also put in info_player_axis, info_player_allies and info_player_allies... these are used in Objective, TeamDeathMatch and RoundBased games. Place the Axis one one side, and Allies on the other is a bood practice...

A info_player_intermisssion decides the view to be shown when the game is over, and the scores are shown.

Hi:

Can you provide and example/temple how to use the INFO_PLAYER_INTERMISSION

I want to add this to some maps via scripting. I already know how to do the othere via scripting but this one I am not sure how to use it.

Thanks
<TWZ>WarTech
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

When the map ends for the last time, and a new map is to be loaded in map rotation, there is a delay... during this time the view of all players will be locked to the position and angle that is defined by a info_player_intermisssion entity. Was that an answer to your question?
Admin .MAP Forums
Image
Head above heels.
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Post by WarTech »

Bjarne BZR wrote:When the map ends for the last time, and a new map is to be loaded in map rotation, there is a delay... during this time the view of all players will be locked to the position and angle that is defined by a info_player_intermisssion entity. Was that an answer to your question?


How will the script look like? Would it look like this? Is this the format for it or a I missing something?

local.intermission = spawn info_player_intermisssion origin "xxxx xxxx xxxx" angle XX


Thanks
<TWZ>WarTech
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

I've never scripted it, but I see no reason for it to be any diffrernt from an axis/allies spawn point spawning. In short: yes that looks OK.
Admin .MAP Forums
Image
Head above heels.
Post Reply