

<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.zeroy.com/index.php?action=history&amp;feed=atom&amp;title=Call_of_Duty_5%3A_Co-op_Player_Spawns</id>
	<title>Call of Duty 5: Co-op Player Spawns - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.zeroy.com/index.php?action=history&amp;feed=atom&amp;title=Call_of_Duty_5%3A_Co-op_Player_Spawns"/>
	<link rel="alternate" type="text/html" href="https://wiki.zeroy.com/index.php?title=Call_of_Duty_5:_Co-op_Player_Spawns&amp;action=history"/>
	<updated>2026-05-12T14:33:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.zeroy.com/index.php?title=Call_of_Duty_5:_Co-op_Player_Spawns&amp;diff=3356&amp;oldid=prev</id>
		<title>CoDEmanX: New page: You&#039;re probably wondering whether you have to add four (4) info_player_starts to your map, the answer is no. Just add in one, but you&#039;ll need to add in four script structs otherwise player...</title>
		<link rel="alternate" type="text/html" href="https://wiki.zeroy.com/index.php?title=Call_of_Duty_5:_Co-op_Player_Spawns&amp;diff=3356&amp;oldid=prev"/>
		<updated>2008-11-24T16:00:45Z</updated>

		<summary type="html">&lt;p&gt;New page: You&amp;#039;re probably wondering whether you have to add four (4) info_player_starts to your map, the answer is no. Just add in one, but you&amp;#039;ll need to add in four script structs otherwise player...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;You&amp;#039;re probably wondering whether you have to add four (4) info_player_starts to your map, the answer is no. Just add in one, but you&amp;#039;ll need to add in four script structs otherwise players will spawn inside each other (they&amp;#039;ll be able to move out but probably wouldn&amp;#039;t look professional) and script a function to move the players to each unique struct.&lt;br /&gt;
&lt;br /&gt;
On the four (4) script_structs, give them the KVP:&lt;br /&gt;
 &amp;quot;targetname&amp;quot; &amp;quot;initial_spawn_points&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You&amp;#039;ll need need add this bit to your script (feel free to modify it as you wish if need be) and call the function shortly after maps\_load::main() is called:&lt;br /&gt;
&amp;lt;pre&amp;gt;coop_player_spawn_placement()&lt;br /&gt;
{&lt;br /&gt;
	structs = getstructarray( &amp;quot;initial_spawn_points&amp;quot;, &amp;quot;targetname&amp;quot; ); &lt;br /&gt;
	&lt;br /&gt;
	flag_wait( &amp;quot;all_players_connected&amp;quot; ); &lt;br /&gt;
	&lt;br /&gt;
	players = get_players(); &lt;br /&gt;
	&lt;br /&gt;
	for( i = 0; i &amp;lt; players.size; i++ )&lt;br /&gt;
	{&lt;br /&gt;
		players[i] setorigin( structs[i].origin ); &lt;br /&gt;
		players[i] setplayerangles( structs[i].angles ); &lt;br /&gt;
	}&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources: [http://wiki.treyarch.com/wiki/Co-op_Player_Spawns Treyarch&amp;#039;s Wiki]&lt;br /&gt;
[[Category:Call of Duty 5]]&lt;br /&gt;
[[Category:Modding]]&lt;br /&gt;
[[Category:Scripting]]&lt;br /&gt;
[[Category:Co-op]]&lt;/div&gt;</summary>
		<author><name>CoDEmanX</name></author>
	</entry>
</feed>