Skip to content

Commit 57bdd9f

Browse files
authored
Add Gamedata For Half-Life 1: Deathmatch Source (alliedmodders#2237)
1 parent d8d1a06 commit 57bdd9f

4 files changed

Lines changed: 308 additions & 0 deletions

File tree

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
"Games"
2+
{
3+
"hl1mp"
4+
{
5+
"Offsets"
6+
{
7+
"Blocked"
8+
{
9+
"windows" "102"
10+
"linux" "103"
11+
}
12+
"EndTouch"
13+
{
14+
"windows" "100"
15+
"linux" "101"
16+
}
17+
"FireBullets"
18+
{
19+
"windows" "112"
20+
"linux" "113"
21+
}
22+
"GroundEntChanged"
23+
{
24+
"windows" "177"
25+
"linux" "179"
26+
}
27+
"OnTakeDamage"
28+
{
29+
"windows" "62"
30+
"linux" "63"
31+
}
32+
"OnTakeDamage_Alive"
33+
{
34+
"windows" "272"
35+
"linux" "273"
36+
}
37+
"PreThink"
38+
{
39+
"windows" "332"
40+
"linux" "333"
41+
}
42+
"PostThink"
43+
{
44+
"windows" "333"
45+
"linux" "334"
46+
}
47+
"Reload"
48+
{
49+
"windows" "270"
50+
"linux" "271"
51+
}
52+
"SetTransmit"
53+
{
54+
"windows" "20"
55+
"linux" "21"
56+
}
57+
"ShouldCollide"
58+
{
59+
"windows" "16"
60+
"linux" "17"
61+
}
62+
"Spawn"
63+
{
64+
"windows" "22"
65+
"linux" "23"
66+
}
67+
"StartTouch"
68+
{
69+
"windows" "98"
70+
"linux" "99"
71+
}
72+
"Think"
73+
{
74+
"windows" "47"
75+
"linux" "48"
76+
}
77+
"Touch"
78+
{
79+
"windows" "99"
80+
"linux" "100"
81+
}
82+
"TraceAttack"
83+
{
84+
"windows" "60"
85+
"linux" "61"
86+
}
87+
"Use"
88+
{
89+
"windows" "97"
90+
"linux" "98"
91+
}
92+
"VPhysicsUpdate"
93+
{
94+
"windows" "157"
95+
"linux" "158"
96+
}
97+
"Weapon_CanSwitchTo"
98+
{
99+
"windows" "266"
100+
"linux" "267"
101+
}
102+
"Weapon_CanUse"
103+
{
104+
"windows" "260"
105+
"linux" "261"
106+
}
107+
"Weapon_Drop"
108+
{
109+
"windows" "263"
110+
"linux" "264"
111+
}
112+
"Weapon_Equip"
113+
{
114+
"windows" "261"
115+
"linux" "262"
116+
}
117+
"Weapon_Switch"
118+
{
119+
"windows" "264"
120+
"linux" "265"
121+
}
122+
}
123+
}
124+
}

gamedata/sdkhooks.games/master.games.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,8 @@
224224
{
225225
"game" "gmod9"
226226
}
227+
"game.hl1mp.txt"
228+
{
229+
"game" "hl1mp"
230+
}
227231
}
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
/**
2+
* Do not edit this file. Any changes will be overwritten by the gamedata
3+
* updater or by upgrading your SourceMod install.
4+
*
5+
* To override data in this file, create a subdirectory named "custom" and
6+
* place your own gamedata file(s) inside of it. Such files will be parsed
7+
* after SM's own.
8+
*
9+
* For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod)
10+
*/
11+
12+
"Games"
13+
{
14+
/* General GameRules */
15+
"#default"
16+
{
17+
"Offsets"
18+
{
19+
/* Offset into CreateGameRulesObject */
20+
"g_pGameRules"
21+
{
22+
"windows" "5"
23+
}
24+
}
25+
26+
"Signatures"
27+
{
28+
/* This signature sometimes has multiple matches, but this
29+
* does not matter as g_pGameRules is involved in all of them.
30+
* The same g_pGameRules offset applies to each match.
31+
*
32+
* Sometimes this block of bytes is at the beginning of the static
33+
* CreateGameRulesObject function and sometimes it is in the middle
34+
* of an entirely different function. This depends on the game.
35+
*/
36+
"CreateGameRulesObject"
37+
{
38+
"library" "server"
39+
"windows" "\x55\x8B\xEC\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x6A\x01"
40+
}
41+
"g_pGameRules"
42+
{
43+
"library" "server"
44+
"linux" "@g_pGameRules"
45+
}
46+
}
47+
}
48+
49+
/* CBaseEntityOutput::FireOutput */
50+
"#default"
51+
{
52+
"Signatures"
53+
{
54+
"FireOutput"
55+
{
56+
"library" "server"
57+
"windows" "\x55\x8B\xEC\x81\xEC\x24\x01\x00\x00\x53\x8B\xC1"
58+
"linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
59+
}
60+
}
61+
}
62+
63+
/* CBaseAnimating::LookupAttachment */
64+
"#default"
65+
{
66+
"Signatures"
67+
{
68+
/* Windows: Called with string "vehicle_driver_eyes" as the second parameter */
69+
"LookupAttachment"
70+
{
71+
"library" "server"
72+
"windows" "\x55\x8B\xEC\x56\x8B\xF1\x80\xBE\x2A\x2A\x2A\x2A\x00\x75\x2A\x83\xBE\x2A\x2A\x2A\x2A\x00\x75\x2A\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x2A\x8B\xCE\xE8\x2A\x2A\x2A\x2A\x8B\x86\x2A\x2A\x2A\x2A\x85\xC0\x74\x2A\x83\x38\x00\x74\x2A\xFF\x75\x2A\x50\xE8\x2A\x2A\x2A\x2A\x83\xC4\x08\x40"
73+
"linux" "@_ZN14CBaseAnimating16LookupAttachmentEPKc"
74+
}
75+
}
76+
}
77+
78+
/* Half-Life Deathmatch: Source */
79+
"hl1mp"
80+
{
81+
"Offsets"
82+
{
83+
"SetOwnerEntity"
84+
{
85+
"windows" "17"
86+
"linux" "18"
87+
}
88+
"GiveNamedItem"
89+
{
90+
"windows" "400"
91+
"linux" "401"
92+
}
93+
"RemovePlayerItem"
94+
{
95+
"windows" "270"
96+
"linux" "271"
97+
}
98+
"Weapon_GetSlot"
99+
{
100+
"windows" "268"
101+
"linux" "269"
102+
}
103+
"Ignite"
104+
{
105+
"windows" "209"
106+
"linux" "210"
107+
}
108+
"Extinguish"
109+
{
110+
"windows" "213"
111+
"linux" "214"
112+
}
113+
"Teleport"
114+
{
115+
"windows" "108"
116+
"linux" "109"
117+
}
118+
"CommitSuicide"
119+
{
120+
"windows" "439"
121+
"linux" "439"
122+
}
123+
"GetVelocity"
124+
{
125+
"windows" "140"
126+
"linux" "141"
127+
}
128+
"EyeAngles"
129+
{
130+
"windows" "131"
131+
"linux" "132"
132+
}
133+
"AcceptInput"
134+
{
135+
"windows" "36"
136+
"linux" "37"
137+
}
138+
"SetEntityModel"
139+
{
140+
"windows" "24"
141+
"linux" "25"
142+
}
143+
"WeaponEquip"
144+
{
145+
"windows" "261"
146+
"linux" "262"
147+
}
148+
"Activate"
149+
{
150+
"windows" "33"
151+
"linux" "34"
152+
}
153+
"PlayerRunCmd"
154+
{
155+
"windows" "418"
156+
"linux" "419"
157+
}
158+
"GiveAmmo"
159+
{
160+
"windows" "252"
161+
"linux" "253"
162+
}
163+
"GetAttachment"
164+
{
165+
"windows" "205"
166+
"linux" "206"
167+
}
168+
}
169+
170+
"Keys"
171+
{
172+
"GameRulesProxy" "CHL1MPGameRulesProxy"
173+
"GameRulesDataTable" "hl1mp_gamerules_data"
174+
}
175+
}
176+
}

gamedata/sdktools.games/master.games.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,4 +285,8 @@
285285
{
286286
"game" "gmod9"
287287
}
288+
"game.hl1mp.txt"
289+
{
290+
"game" "hl1mp"
291+
}
288292
}

0 commit comments

Comments
 (0)