How to find a origin and angle?

Shwan

L1: Registered
May 31, 2011
3
1
Hello, I was recently looking around in the Soapmod config file and realized that I could probably add support for different maps on my own. Here is an example of how Soap specifies spawns for badlands:

Code:
	"cp_badlands"
	{
		"red"
		{
			"RED under main bridge"
			{       
				"origin"	"475.37 -134.76 149.42"
				"angles"	"0 -148.31 0"
			}
			"RED valley2"
			{       
				"origin"	"-685.92 1325.76 142.21"
				"angles"	"0 -90 0"
			}
			"BLU valley2"
			{       
				"origin"	"674.10 -1338.06 143.71"
				"angles"	"0 90 0"
			}
			"RED choke house"
			{       
				"origin"	"849.18 719.41 256.18"
				"angles"	"0 -9.27 0"
			}
			"BLU under main bridge"
			{       
				"origin"	"475.37 -134.76 149.42"
				"angles"	"0 -148.31 0"
			}
			
			"BLU choke house"
			{       
				"origin"	"-847.22 -700.23 266.33"
				"angles"	"0 171.43 0"
			}
			"RED under main bridge"
			{       
				"origin"	"-547.61 144.47 134.39"
				"angles"	"0 34.13 0"
			}
			"BLU grass"
			{       
				"origin"	"-1080.18 -1097.93 61.37"
				"angles"	"0 -175 0"
			}
			"RED grass"
			{       
				"origin"	"1093.90 1108.23 62.33"
				"angles"	"0 3 0"
			}
			"BLU spire"
			{       
				"origin"	"-1685.79 -1733.04 258.33"
				"angles"	"0 90 0"
			}
			"RED spire"
			{       
				"origin"	"1663.82 1711.34 261.94"
				"angles"	"0 -97 0"
			}
			"RED little bridge"
			{       
				"origin"	"1261.80 1824.55 -159"
				"angles"	"0 -90 0"
			}
			"BLU behind spire"
			{       
				"origin"	"-2435.63 -1217.25 83.70"
				"angles"	"0 0 0"
			}
			"RED behind spire"
			{       
				"origin"	"2408.02 1203.55 81.97"
				"angles"	"0 179 0"
			}
			
			"BLU little bridge"
			{       
				"origin"	"-1262.97 -1675.19 -159"
				"angles"	"0 0 0"
			}
			"RED outside 2nd resupply"
			{       
				"origin"	"80.47 1843.81 259.70"
				"angles"	"0 0 0"
			}
			"BLU outside 2nd resupply"
			{       
				"origin"	"-83.98 -1834.97 260.02"
				"angles"	"0 -179 0"
			}
		}
		"blue"
		{
			"BLU under main bridge"
			{       
				"origin"	"475.37 -134.76 149.42"
				"angles"	"0 -148.31 0"
			}
			"RED choke house"
			{       
				"origin"	"840.11 638.87 256.97"
				"angles"	"0 0 0"
			}
			"BLU under main bridge"
			{       
				"origin"	"563.30 -327.24 137.22"
				"angles"	"0 -180 0"
			}
			
			"BLU choke house"
			{       
				"origin"	"-847.22 -595.39 256.97"
				"angles"	"0 171.43 0"
			}
		
			"RED under main bridge"
			{       
				"origin"	"-571.46 284.78 142.67"
				"angles"	"0 0 0"
			}
			"BLU grass"
			{       
				"origin"	"-1102.62 -1210.18 66.28"
				"angles"	"0 -175 0"
			}
			"RED grass"
			{       
				"origin"	"1101.18 1207.19 65.81"
				"angles"	"0 3 0"
			}
			"BLU valley2"
			{       
				"origin"	"573.59 -1338.42 144.64"
				"angles"	"0 90 0"
			}
			"RED valley2"
			{       
				"origin"	"-566.42 1327.88 142.86"
				"angles"	"0 -90 0"
			}
			
			"RED outside 2nd resupply"
			{       
				"origin"	"80.47 1939.59 256.97"
				"angles"	"0 0 0"
			}
			"RED little bridge"
			{       
				"origin"	"1239.21 1645.58 -160"
				"angles"	"0 -179 0"
			}
			"RED behind spire"
			{       
				"origin"	"2472.12 1370.41 94.51"
				"angles"	"0 179 0"
			}
			"RED spire"
			{       
				"origin"	"1661.05 1560.69 260.95"
				"angles"	"0 -97 0"
			}
			"BLU little bridge"
			{       
				"origin"	"-1302.45 -1770.99 -155"
				"angles"	"0 90 0"
			}
			"BLU behind spire"
			{       
				"origin"	"-2490.67 -1410.10 97.98"
				"angles"	"0 0 0"
			}
			"BLU spire"
			{       
				"origin"	"-1659.36 -1554.41 260.97"
				"angles"	"0 90 0"
			}
			"BLU outside 2nd resupply"
			{       
				"origin"	"-84.24 -1945.65 256.98"
				"angles"	"0 -179	 0"
			}
		}
	}

I don't really know what I am doing, but if i wanted to add spawns for cp_snakewater_rc3 it would seem that i would only need to find the origin and the angle of a particular place. Once i have that i can just add it to the soap.cfg on the server. So my first question is how would you go about finding the "orgin" an d"angles"? and secondly if any one here has knowledge of soapmod/sourcemod plugins would my plan even work?
 

Penguin

Clinically Diagnosed with Small Mapper's Syndrome
aa
May 21, 2009
2,039
1,484
> walk to desired area

> type "getpos" in console

> copy and paste the result
 

Shwan

L1: Registered
May 31, 2011
3
1
Says that its an unknown command but I was being silly when you type getpos this is what you get:

Code:
setpos -291.837891 521.940491 80.341873;setang 4.063382 -21.653027 0.000000

It tells you the angle in the same line! lol

EDIT:
Just in case anyone was wondering it was a success thanks to penguin i simply added this code to soap.cfg and now snakewater has spawn points set!

Code:
	"cp_snakewater_rc3"
	{
		"red"
		{
			"test1"
			{
				"origin"	"-322.302124 654.430908 65.619598"
				"angles"	"1.386079 -26.977051 0.000000"
			}
			
		}
		"blue"
		{
			"test2"
			{
				"origin"	"1318.335693 -134.313995 76.613556"
				"angles"	"4.356021 157.265060 0.000000"
			}
			
		}
	}
 
Last edited:
Jan 20, 2010
1,317
902

tumblr_kqyhbwgL3n1qa6cp7o1_500.jpg
 

Penguin

Clinically Diagnosed with Small Mapper's Syndrome
aa
May 21, 2009
2,039
1,484
*getaang