View Single Post
Author Message
bUddY_9UY
New Member
Join Date: May 2019
Old 05-15-2019 , 11:41   Help! Team spawn point in Counter Strike 1.6 Deathmatch
Reply With Quote #1

I'm playing mod cs 1.6 deathmatch downloaded from this topic

https://forums.alliedmods.net/showthread.php?p=1031971

But i want to change something from this mod. Specifically, i want to set up the point of spawn for T and CT.

Example: Ts can only spawn at some point set at A site and Cts can only spawn at some point set at middle (or somewhere else)

How can i split like that?

Here is the plugin i downloaded for this issue.

https://forums.alliedmods.net/showthread.php?p=1031971

readSpawns()
{
//-617 2648 179 16 -22 0 0 -5 -22 0
// Origin (x,y,z), Angles (x,y,z), vAngles(x,y,z), Team (0 = ALL) - ignore
// :TODO: Implement team specific spawns

new Map[32], config[32], MapFile[64]

get_mapname(Map, 31)
get_configsdir(config, 31)
format(MapFile, 63, "%s\csdm\%s.spawns.cfg", config, Map)
g_TotalSpawns = 0;

if (file_exists(MapFile))
{
new Data[124], len
new line = 0
new pos[12][8]

while(g_TotalSpawns < MAX_SPAWNS && (line = read_file(MapFile , line , Data , 123 , len) ) != 0 )
{
if (strlen(Data)<2 || Data[0] == '[')
continue;

parse(Data, pos[1], 7, pos[2], 7, pos[3], 7, pos[4], 7, pos[5], 7, pos[6], 7, pos[7], 7, pos[8], 7, pos[9], 7, pos[10], 7);

// Origin
g_SpawnVecs[g_TotalSpawns][0] = str_to_float(pos[1])
g_SpawnVecs[g_TotalSpawns][1] = str_to_float(pos[2])
g_SpawnVecs[g_TotalSpawns][2] = str_to_float(pos[3])

//Angles
g_SpawnAngles[g_TotalSpawns][0] = str_to_float(pos[4])
g_SpawnAngles[g_TotalSpawns][1] = str_to_float(pos[5])
g_SpawnAngles[g_TotalSpawns][2] = str_to_float(pos[6])

//v-Angles
g_SpawnVAngles[g_TotalSpawns][0] = str_to_float(pos[8])
g_SpawnVAngles[g_TotalSpawns][1] = str_to_float(pos[9])
g_SpawnVAngles[g_TotalSpawns][2] = str_to_float(pos[10])

//Team - ignore - 7

g_TotalSpawns++;



The code didnt set any value to set up the team.
bUddY_9UY is offline