UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

[Tutorial] Verruckt style player spawns

broken avatar :(
Created 11 years ago
by daedra descent
0 Members and 1 Guest are viewing this topic.
1,282 views
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 9 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Hello random people on the internet, i thought i'd create a real short & easy tutorial on how to get verruckt player spawns into your map.

*MAPNAME refers to the actual name of your map.

First things first, copy the following into the bottom of your MAPNAME.gsc:

Code Snippet
Plaintext
spawn_point_override()
{
flag_wait( "all_players_connected" );

players = get_players();

//spawn points are split, so grab them both seperately
north_structs = getstructarray("north_spawn","script_noteworthy");
south_structs = getstructarray("south_spawn","script_noteworthy");

side1 = north_structs;
side2 = south_structs;
if(randomint(100)>50)
{
side1 = south_structs;
side2 = north_structs;
}

//spawn players on a specific side, but randomize it up a bit
for( i = 0; i < players.size; i++ )
{
if(i<2)
{
players[i] setorigin( side1[i].origin );
players[i] setplayerangles( side1[i].angles );
players[i].respawn_point = side1[i];
players[i].spawn_side = side1[i].script_noteworthy;
}
else
{
players[i] setorigin( side2[i].origin);
players[i] setplayerangles( side2[i].angles);
players[i].respawn_point = side2[i];
players[i].spawn_side = side2[i].script_noteworthy;
}
}
}

then under

Code Snippet
Plaintext
	/*--------------------
FUNCTION CALLS - POST _Load
----------------------*/
level.zone_manager_init_func = ::dlc3_zone_init;
level thread DLC3_threadCalls2();

add this:

Code Snippet
Plaintext
level thread spawn_point_override();

Now in Raidant, give your normal player spawns the following:

Code Snippet
Plaintext
"north_spawn""script_noteworthy"

or

Code Snippet
Plaintext
"south_spawn""script_noteworthy"


*You need to give 2 our of the 4 player each KVP for this to work, so two of the structs should have the script_noteworthy value of "north_spawn" and the other "south_spawn".
Last Edit: February 08, 2014, 11:23:55 pm by daedra descent

 
Loading ...