Added support for L4D on Mac OS X (bug 4684, r=fyren).
authorScott Ehlert <ds@alliedmods.net>
Fri Oct 29 20:04:50 2010 -0500 (2010-10-29)
changeset 31460785a5a1316d
parent 3145 3fc087dd29e8
child 3147 b6db3d09eb79
Added support for L4D on Mac OS X (bug 4684, r=fyren).
AMBuildScript
gamedata/core.games/engine.l4d.txt
gamedata/sdktools.games/engine.l4d.txt
     1.1 --- a/AMBuildScript	Thu Oct 28 12:42:13 2010 -0700
     1.2 +++ b/AMBuildScript	Fri Oct 29 20:04:50 2010 -0500
     1.3 @@ -16,7 +16,7 @@
     1.4  		self.sdkInfo['ep2v'] =  {'sdk': 'HL2SDKOBVALVE',   'ext': '2.ep2v',  'def': '4',
     1.5  		                         'name': 'ORANGEBOXVALVE', 'platform': ['windows', 'linux', 'darwin']}
     1.6  		self.sdkInfo['l4d'] =   {'sdk': 'HL2SDKL4D',       'ext': '2.l4d',   'def': '5',
     1.7 -		                         'name': 'LEFT4DEAD',      'platform': ['windows', 'linux']}
     1.8 +		                         'name': 'LEFT4DEAD',      'platform': ['windows', 'linux', 'darwin']}
     1.9  		self.sdkInfo['l4d2'] =  {'sdk': 'HL2SDKL4D2',      'ext': '2.l4d2',  'def': '6',
    1.10  		                         'name': 'LEFT4DEAD2',     'platform': ['windows', 'linux', 'darwin']}
    1.11  		self.sdkInfo['darkm'] = {'sdk': 'HL2SDK-DARKM',    'ext': '2.darkm', 'def': '2',
    1.12 @@ -31,6 +31,7 @@
    1.13  			#Detect variables
    1.14  			envvars = { 'MMSOURCE18':    'mmsource-1.8',
    1.15  									'HL2SDKOBVALVE': 'hl2sdk-ob-valve',
    1.16 +									'HL2SDKL4D':     'hl2sdk-l4d',
    1.17  									'HL2SDKL4D2':    'hl2sdk-l4d2',
    1.18  									'MYSQL5':        'mysql-5.0'
    1.19  			}
    1.20 @@ -38,7 +39,6 @@
    1.21  			if AMBuild.target['platform'] != 'darwin':
    1.22  				envvars['HL2SDK'] = 'hl2sdk'
    1.23  				envvars['HL2SDKOB'] = 'hl2sdk-ob'
    1.24 -				envvars['HL2SDKL4D'] = 'hl2sdk-l4d'
    1.25  
    1.26  			#Dark Messiah is Windows-only
    1.27  			if AMBuild.target['platform'] == 'windows':
     2.1 --- a/gamedata/core.games/engine.l4d.txt	Thu Oct 28 12:42:13 2010 -0700
     2.2 +++ b/gamedata/core.games/engine.l4d.txt	Fri Oct 29 20:04:50 2010 -0500
     2.3 @@ -31,6 +31,7 @@
     2.4  			{
     2.5  				"windows"	"4"	
     2.6  				"linux"		"4"
     2.7 +				"mac"		"4"
     2.8  			}
     2.9  		}
    2.10  		
    2.11 @@ -45,6 +46,7 @@
    2.12  			{
    2.13  				"library"	"server"
    2.14  				"linux"		"@gEntList"
    2.15 +				"mac"		"@gEntList"
    2.16  			}
    2.17  		}
    2.18  	}
     3.1 --- a/gamedata/sdktools.games/engine.l4d.txt	Thu Oct 28 12:42:13 2010 -0700
     3.2 +++ b/gamedata/sdktools.games/engine.l4d.txt	Fri Oct 29 20:04:50 2010 -0500
     3.3 @@ -41,16 +41,19 @@
     3.4  			{
     3.5  				"windows"	"4"
     3.6  				"linux"		"4"
     3.7 +				"mac"		"4"
     3.8  			}
     3.9  			"GetTENext"
    3.10  			{
    3.11  				"windows"	"8"
    3.12  				"linux"		"8"
    3.13 +				"mac"		"8"
    3.14  			}
    3.15  			"TE_GetServerClass"
    3.16  			{
    3.17  				"windows"	"0"
    3.18  				"linux"		"0"
    3.19 +				"mac"		"0"
    3.20  			}
    3.21  		}
    3.22  
    3.23 @@ -65,6 +68,7 @@
    3.24  			{
    3.25  				"library"	"server"
    3.26  				"linux"		"@_ZN15CBaseTempEntity15s_pTempEntitiesE"
    3.27 +				"mac"		"@_ZN15CBaseTempEntity15s_pTempEntitiesE"
    3.28  			}
    3.29  		}
    3.30  	}
    3.31 @@ -83,12 +87,14 @@
    3.32  			{
    3.33  				"library"	"server"
    3.34  				"linux"		"@_Z13DispatchSpawnP11CBaseEntity"
    3.35 +				"mac"		"@_Z13DispatchSpawnP11CBaseEntity"
    3.36  				"windows"	"\x53\x55\x56\x8B\x74\x24\x10\x85\xF6\x57\x0F\x84\x2A\x2A\x2A\x2A\x8B\x1D\x2A\x2A\x2A\x2A\x8B\x03\x8B\x50\x64\x8B\xCB"
    3.37  			}
    3.38  			"CreateEntityByName"
    3.39  			{
    3.40  				"library"	"server"
    3.41  				"linux"		"@_Z18CreateEntityByNamePKcib"
    3.42 +				"mac"		"@_Z18CreateEntityByNamePKcib"
    3.43  				"windows"	"\x56\x8B\x74\x24\x0C\x83\xFE\xFF\x57\x8B\x7C\x24\x0C\x74\x27\x8B\x0D\x2A\x2A\x2A\x2A\x8B\x01\x8B\x50\x54\x56\xFF\xD2"
    3.44  			}
    3.45  		}
    3.46 @@ -110,6 +116,7 @@
    3.47  				"library"	"server"
    3.48  				"windows"	"\x53\x55\x56\x8B\xF1\x8B\x4C\x24\x10\x85\xC9\x57\x74\x19\x8B\x01\x8B\x50\x08\xFF\xD2\x8B\x00\x25\xFF\x0F\x00\x00\x83\xC0\x01\xC1\xE0\x04\x8B\x3C\x30\xEB\x06\x8B\xBE\x2A\x2A\x2A\x2A\x85\xFF\x74\x39\x8B\x5C\x24\x18\x8B\x2D\x2A\x2A\x2A\x2A\xEB\x03"
    3.49  				"linux"		"@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc"
    3.50 +				"mac"		"@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc"
    3.51  			}
    3.52  		}
    3.53  	}
    3.54 @@ -150,6 +157,7 @@
    3.55  			{
    3.56  				"library"	"server"
    3.57  				"linux"		"@g_pGameRules"
    3.58 +				"mac"		"@g_pGameRules"
    3.59  			}
    3.60  		}
    3.61  	}
    3.62 @@ -186,6 +194,7 @@
    3.63  			{
    3.64  				"library"	"engine"
    3.65  				"linux"		"@sv"
    3.66 +				"mac"		"@sv"
    3.67  			}
    3.68  		}
    3.69  	}
    3.70 @@ -200,6 +209,7 @@
    3.71  				"library"	"server"
    3.72  				"windows"	"\xB8\x01\x00\x00\x00\x84\x2A\x2A\x2A\x2A\x2A\x75\x1D\x09\x2A\x2A\x2A\x2A\x2A\xB9\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x68\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x83\xC4\x04\xB8\x2A\x2A\x2A\x2A\xC3"
    3.73  				"linux"		"@_Z23EntityFactoryDictionaryv"
    3.74 +				"mac"		"@_Z23EntityFactoryDictionaryv"
    3.75  			}
    3.76  		}
    3.77  	}
    3.78 @@ -218,6 +228,7 @@
    3.79  				"library"	"server"
    3.80  				"windows"	"\x81\xEC\x1C\x01\x00\x00\x53\x55\x56\x8B\x71\x14\x85\xF6"
    3.81  				"linux"		"@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
    3.82 +				"mac"		"@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
    3.83  			}
    3.84  		}
    3.85  	}
    3.86 @@ -237,6 +248,7 @@
    3.87  			{
    3.88  				"windows"	"17"
    3.89  				"linux"		"63"
    3.90 +				"mac"		"63"
    3.91  			}
    3.92  			/**
    3.93  			 * Offset into CBaseClient - Used by CBaseServer::UpdateUserSettings to determine when changes have been made.
    3.94 @@ -248,6 +260,7 @@
    3.95  			{
    3.96  				"windows"	"176"
    3.97  				"linux"		"176"
    3.98 +				"mac"		"176"
    3.99  			}
   3.100  		}
   3.101  	}
   3.102 @@ -261,86 +274,103 @@
   3.103  			{
   3.104  				"windows"	"482"
   3.105  				"linux"		"483"
   3.106 +				"mac"		"483"
   3.107  			}
   3.108  			"RemovePlayerItem"
   3.109  			{
   3.110  				"windows"	"269"
   3.111  				"linux"		"270"
   3.112 +				"mac"		"270"
   3.113  			}
   3.114  			"Weapon_GetSlot"
   3.115  			{
   3.116  				"windows"	"267"
   3.117  				"linux"		"268"
   3.118 +				"mac"           "268"
   3.119  			}
   3.120  			"Ignite"
   3.121  			{
   3.122  				"windows"	"206"
   3.123  				"linux"		"207"
   3.124 +				"mac"           "207"
   3.125  			}
   3.126  			"Extinguish"
   3.127  			{
   3.128  				"windows"	"210"
   3.129  				"linux"		"211"
   3.130 +				"mac"           "211"
   3.131  			}
   3.132  			"Teleport"
   3.133  			{
   3.134  				"windows"	"105"
   3.135  				"linux"		"106"
   3.136 +				"mac"           "106"
   3.137  			}
   3.138  			"CommitSuicide"
   3.139  			{
   3.140  				"windows"	"449"
   3.141  				"linux"		"449"
   3.142 +				"mac"           "449"
   3.143  			}
   3.144  			"GetVelocity"
   3.145  			{
   3.146  				"windows"	"136"
   3.147  				"linux"		"137"
   3.148 +				"mac"           "137"
   3.149  			}
   3.150  			"EyeAngles"
   3.151  			{
   3.152  				"windows"	"127"
   3.153  				"linux"		"128"
   3.154 +				"mac"           "128"
   3.155  			}
   3.156  			"AcceptInput"
   3.157  			{
   3.158  				"windows"	"37"
   3.159  				"linux"		"38"
   3.160 +				"mac"           "38"
   3.161  			}
   3.162  			"DispatchKeyValue"
   3.163  			{
   3.164  				"windows"	"29"
   3.165  				"linux"		"28"
   3.166 +				"mac"           "28"
   3.167  			}
   3.168  			"DispatchKeyValueFloat"
   3.169  			{
   3.170  				"windows"	"28"
   3.171  				"linux"		"29"
   3.172 +				"mac"           "29"
   3.173  			}
   3.174  			"DispatchKeyValueVector"
   3.175  			{
   3.176  				"windows"	"27"
   3.177  				"linux"		"30"
   3.178 +				"mac"           "30"
   3.179  			}
   3.180  			"SetEntityModel"
   3.181  			{
   3.182  				"windows"	"23"
   3.183  				"linux"		"24"
   3.184 +				"mac"           "24"
   3.185  			}
   3.186  			"WeaponEquip"
   3.187  			{
   3.188  				"windows"	"260"
   3.189  				"linux"		"261"
   3.190 +				"mac"           "261"
   3.191  			}
   3.192  			"Activate"
   3.193  			{
   3.194  				"windows"	"31"
   3.195  				"linux"		"32"
   3.196 +				"mac"           "32"
   3.197  			}
   3.198  			"PlayerRunCmd"
   3.199  			{
   3.200  				"windows"	"427"
   3.201  				"linux"		"428"
   3.202 +				"mac"           "428"
   3.203  			}
   3.204  		}
   3.205  	}