| closedPData Riddles |
| Started by Wilson [29th ID] on 12-17-2007, 07:10 AM |
Threads: 57
Joined: Oct 2005
All right, I went and figured out everything I could about the pdata offsets of weapons. Some weapons have a lot more than others, but generally none go above 150.nnI based this on the garand, which only has a few, relative to something like the mg42 which is more complex. Below is what I found, but there are a few offsets that are clearly meaningful that I cannot figure out.nnIn addition to these offsets, there are a bunch of longs that I cannot figure out. I've tried to see what bytes they are made of but it just doesn't add up.nnSee if you can figure out the pattern. If you'd like to see it for yourself or try it with different weapons, use FM Research - it's very quick and easy to test this stuff with it (available in developer's plugins forum).nn
nWeapon Offsetsn91 - Weapon IDn93 - Spawn Origin Xn94 - Spawn Origin Yn95 - Spawn Origin Zn100 - Unknown (Possibly the Owner)n103 - Attack 1 Delayn104 - Attack 2 Delayn105 - Unknown (Revolving float - see below)n106 - Ammo 1 Typen107 - Ammo 2 Typen108 - Clip Ammon109 - Unknown (Always Matches Offset 108)n110 - Active Weapon (Boolean)n116 - MG Overheat Percentagen117 - Unknown (Some sort of ID - see below)n118 - Unknown (Only certain weapons set this - see below)nnnOffset 105 Patternsn-Garand regularly loops from roughly 6.0 down to 0.0 and back up againn-MG42 goes up to roughly 13.5 after firing and goes down to -0.001 and stays until firing)n-Other weapons tested act like GarandnnnOffset 117 Patternsnknife - 0nluger - 0nwebley - 0nhandgren - 0 (handgren_ex also)nstickgren - 0 (stickgren_ex also)nthompson - 1nm1carbine - 2 (folding carbine also)ngarand - 3nscopedkar - 4nspring - 6ncolt - 7nkar - 9nstg44 - 10nmp40 - 11nmg42 - 12nmg34 - 14n30cal - 15nbar - 16ngreasegun - 17nfg42 - 18 (scoped fg42 also)nk43 - 19nsten - 22nbren - 23nbazooka - 25npschreck - 26npiat - 27nenfield - 1376276 (scoped endfield also)nnnOffset 118 Patternsnwebley - 24ngren_ex - -1.0 (same as stick_ex)nmg42 - 13nAll other weapons - 0nnnAny insight on the patterns? Recognise anything?Threads: 75
Joined: Jun 2006
Well I posted the following in the Wiki when I found it in the new Amxmodx.
Threads: 75
Joined: Jun 2006
Also, I would guess that the Offset 105 Patterns is for the motion of the weapon if you were moving, or maybe the recoil amount to kick it up, also that might be the heat level for the MG42. The Offset 117 Patterns look like the weapons numbers but its kinda screwy that the thing would have 0 for the webley the amerknife and the 2 types of grenades. As for the last one, duno...well I am going to my parents place in the next few days. I will be working on 2 things while there, the dod exposure module and any bugs in the dodx module as well as any new ideas that people want in that. However I may rebuild the whole thing once I get the dod exposure done up, that is exposing the dod dll like we do with the hl dll. Sokay, talk at ya all soon.nnCheers!
Threads: 57
Joined: Oct 2005
Zor, those offsets don't match up to my research it seems. Where did you find those? I know my research is correct because I've tested it, but perhaps your findings cover something else just as important.nnYour 2nd post I appreciate but must say I've already considered - it's not those possibilities.
Threads: 75
Joined: Jun 2006
I found that information as part of the Ham Sandwich Module Config.nnhttp://wiki.amxmodx.org/HamSandwich_General_Usage_%28AMX_Mod_X%29nnThat data might just be for that module...nnCheers!
Threads: 57
Joined: Oct 2005
Oh...those are the numbers used for hamsandwich module. Not pdata..nEDIT: Hah, I posted this then saw your reply :P
Threads: 57
Joined: Oct 2005
Some more findings. These ones are for player entities.nn53n -K43 8n -Garand 14n -MP40 16n -K98 16n -British rifleman, 12nn49 - bpAmmo (Bazooka, Piat, Pschreck)n53 - bpAmmo (Webley, Colt, Luger)n54 - bpAmmo (Enfield, K98, ScopedK98)n55 - bpAmmo (Spring)n56 - bpAmmo (Sten, Thompson, MP40)n57 - bpAmmo (Bren, BAR, STG44, FG42)n58 - bpAmmo (Carbine, K43, MG34)n59 - bpAmmo (HEGren)n61 - bpAmmo (Stick Grenade)nWhere is MG42?? 30cal?nnn88 - Alive (Boolean)n289 - Alive (Boolean)nn151,152n -Normally both 3n -If firing standing still, both 28n -If firing while running, 151=28, 152=3n -Getting up from proning, both 77n -Spectating, 86nn---from dod deathnades---n#define HAND_OFFSET 289n#define STICK_OFFSET 291nn229 - deploy -- recoil?!n -standing: 600n -proned: 50n -deployed: 1n -proned & deployed: 1n -scoped: 42n -proned & scoped: 30n -shouldered zook: 50nn376 - model string (us-inf)nn// DoD Player - From dodfun modulen#define STEAM_PDOFFSET_WDEPLOY 229 + LINUXOFFSET // weapon deploynn#define STEAM_PDOFFSET_TEAMNAME 1396 + (LINUXOFFSET * sizeof(char)) // nnteam name 349 char[16]n#define STEAM_PDOFFSET_CLASS 366 + LINUXOFFSET // player classn#define STEAM_PDOFFSET_RCLASS 367 + LINUXOFFSET // random class nn#define STEAM_PDOFFSET_SCORE 475 + LINUXOFFSET // scoren#define STEAM_PDOFFSET_DEATHS 476 + LINUXOFFSET // deaths

