Raised This Month: $49 Target: $400
 12% 

Help! Team spawn point in Counter Strike 1.6 Deathmatch


Post New Thread Reply   
 
Thread Tools Display Modes
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
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 05-15-2019 , 13:33   Re: Help! Team spawn point in Counter Strike 1.6 Deathmatch
Reply With Quote #2

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

Last edited by Godofwar; 05-15-2019 at 13:33.
Godofwar is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:37.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode