diamond-optic
12-04-2007, 03:11 PM
well i was doing some stuff with death messages and i noticed when using dod_get_user_weapon to get the players current weapon to print to the death msg that some weapons were not matching up..
and i went thru the death msg weapon values one by one and found them to be different then the DODW_ constants... here's what i came up with:
DODW_ constants (from dodconst.inc):
/* DoD weapons */ //passed id
enum {
DODW_AMERKNIFE = 1, // 1
DODW_GERKNIFE, // 2
DODW_COLT, // 3
DODW_LUGER, // 4
DODW_GARAND, // 5
DODW_SCOPED_KAR, // 6
DODW_THOMPSON, // 7
DODW_STG44, // 8
DODW_SPRINGFIELD, // 9
DODW_KAR, //10
DODW_BAR, //11
DODW_MP40, //12
DODW_HANDGRENADE, //13
DODW_STICKGRENADE, //14
DODW_STICKGRENADE_EX, //15
DODW_HANDGRENADE_EX, //16
DODW_MG42, //17
DODW_30_CAL, //18
DODW_SPADE, //19
DODW_M1_CARBINE, //20
DODW_MG34, //21
DODW_GREASEGUN, //22
DODW_FG42, //23
DODW_K43, //24
DODW_ENFIELD, //25
DODW_STEN, //26
DODW_BREN, //27
DODW_WEBLEY, //28
DODW_BAZOOKA, //29
DODW_PANZERSCHRECK, //30
DODW_PIAT, //31
DODW_SCOPED_FG42, //32
DODW_FOLDING_CARBINE, //33
DODW_KAR_BAYONET, //34
DODW_SCOPED_ENFIELD, //35
DODW_MILLS_BOMB, //36
DODW_BRITKNIFE, //37
DODW_GARAND_BUTT, //38
DODW_ENFIELD_BAYONET, //39
DODW_MORTAR, //40
DODW_K43_BUTT, //41
};and here's the death message weapon constants i came up with
/* DoD Death Message weapons */
enum {
DODDMW_AMERKNIFE = 1, // 1
DODDMW_GERKNIFE, // 2
DODDMW_COLT, // 3
DODDMW_LUGER, // 4
DODDMW_GARAND, // 5
DODDMW_SCOPED_KAR, // 6
DODDMW_THOMPSON, // 7
DODDMW_STG44, // 8
DODDMW_SPRINGFIELD, // 9
DODDMW_KAR, //10
DODDMW_BAR, //11
DODDMW_MP40, //12
DODDMW_HANDGRENADE, //13
DODDMW_STICKGRENADE, //14
DODDMW_STICKGRENADE_EX, //15
DODDMW_HANDGRENADE_EX, //16
DODDMW_MG42, //17
DODDMW_30_CAL, //18
DODDMW_SPADE, //19
DODDMW_M1_CARBINE, //20
DODDMW_MG34, //21
DODDMW_GREASEGUN, //22
DODDMW_FG42, //23
DODDMW_K43, //24
DODDMW_ENFIELD, //25
DODDMW_STEN, //26
DODDMW_BREN, //27
DODDMW_WEBLEY, //28
DODDMW_BAZOOKA, //29
DODDMW_PANZERSCHRECK, //30
DODDMW_PIAT, //31
DODDMW_MORTAR, //32
DODDMW_BINOCULARS, //33 (obviously never used)
DODDMW_SATCHEL, //34
DODDMW_SCOPED_FG42, //35
DODDMW_FOLDING_CARBINE, //36
DODDMW_KAR_BAYONET, //37
DODDMW_SCOPED_ENFIELD, //38
DODDMW_MILLS_BOMB, //39
DODDMW_BRITKNIFE, //40
DODDMW_MORTAR_UNKNOWN, //41 (couldnt find any instance of this actually being used)
DODDMW_GARAND_BUTT, //42 (also used for k43 buttstock)
DODDMW_ENFIELD_BAYONET //43
};you'll notice some big differences (like death msg ids for binoculars, satchels.. two mortars (one of which i couldnt find actually being used by the game anywhere) and the garand_butt is used for both garand & k43 buttstock kills
ive got a lot more testing to do.. but im wondering if maybe the DODW_ constants might be wrong.. or if its another stupid way dod is written where the weapon ids dont match.. cause its causing a shit load of problems when trying to make a death msg with a players current in-hand weapon.. unless its not supposed to match.. lol
for example.. if they are holding a british knife.. and you pass that id (from dod_get_user_weapon) to a death msg, it shows up as a bayonet..
but its kinda hard to test all the DODW_ constants, cause you cant exactly be holding a bayonet or a mortar to check those IDs... but when i get a chance later im gonna check out the weapon ids used in the death forward (common sense is telling me they should match the death msg weapon ids not the DODW_ constant ids)
tho in anycase.. im sure a stock could probably be made to convert the DODW_ constant ids over to the proper death message weapon ids
** on a side note, i noticed with the DODW_ constants, that the DODW_MILLS_BOMB doesnt seem to be used (at least anywhere ive seen so far).. it always comes up as a HANDGRENADE (or with the _EX on the end for a live nade thats been picked back up) so im assuming its no different whether its US or british for the nades and the map info determines what model is shown... **
anyway anyone else notice this? as im sure this *might* cause some problems with plugins that are using these things.. but ill post when once i have some more information.. and depending what i can come up with i might put in a bug report on the amxx site to at least get the death message weapon ids added to the dodconst.inc file
and i went thru the death msg weapon values one by one and found them to be different then the DODW_ constants... here's what i came up with:
DODW_ constants (from dodconst.inc):
/* DoD weapons */ //passed id
enum {
DODW_AMERKNIFE = 1, // 1
DODW_GERKNIFE, // 2
DODW_COLT, // 3
DODW_LUGER, // 4
DODW_GARAND, // 5
DODW_SCOPED_KAR, // 6
DODW_THOMPSON, // 7
DODW_STG44, // 8
DODW_SPRINGFIELD, // 9
DODW_KAR, //10
DODW_BAR, //11
DODW_MP40, //12
DODW_HANDGRENADE, //13
DODW_STICKGRENADE, //14
DODW_STICKGRENADE_EX, //15
DODW_HANDGRENADE_EX, //16
DODW_MG42, //17
DODW_30_CAL, //18
DODW_SPADE, //19
DODW_M1_CARBINE, //20
DODW_MG34, //21
DODW_GREASEGUN, //22
DODW_FG42, //23
DODW_K43, //24
DODW_ENFIELD, //25
DODW_STEN, //26
DODW_BREN, //27
DODW_WEBLEY, //28
DODW_BAZOOKA, //29
DODW_PANZERSCHRECK, //30
DODW_PIAT, //31
DODW_SCOPED_FG42, //32
DODW_FOLDING_CARBINE, //33
DODW_KAR_BAYONET, //34
DODW_SCOPED_ENFIELD, //35
DODW_MILLS_BOMB, //36
DODW_BRITKNIFE, //37
DODW_GARAND_BUTT, //38
DODW_ENFIELD_BAYONET, //39
DODW_MORTAR, //40
DODW_K43_BUTT, //41
};and here's the death message weapon constants i came up with
/* DoD Death Message weapons */
enum {
DODDMW_AMERKNIFE = 1, // 1
DODDMW_GERKNIFE, // 2
DODDMW_COLT, // 3
DODDMW_LUGER, // 4
DODDMW_GARAND, // 5
DODDMW_SCOPED_KAR, // 6
DODDMW_THOMPSON, // 7
DODDMW_STG44, // 8
DODDMW_SPRINGFIELD, // 9
DODDMW_KAR, //10
DODDMW_BAR, //11
DODDMW_MP40, //12
DODDMW_HANDGRENADE, //13
DODDMW_STICKGRENADE, //14
DODDMW_STICKGRENADE_EX, //15
DODDMW_HANDGRENADE_EX, //16
DODDMW_MG42, //17
DODDMW_30_CAL, //18
DODDMW_SPADE, //19
DODDMW_M1_CARBINE, //20
DODDMW_MG34, //21
DODDMW_GREASEGUN, //22
DODDMW_FG42, //23
DODDMW_K43, //24
DODDMW_ENFIELD, //25
DODDMW_STEN, //26
DODDMW_BREN, //27
DODDMW_WEBLEY, //28
DODDMW_BAZOOKA, //29
DODDMW_PANZERSCHRECK, //30
DODDMW_PIAT, //31
DODDMW_MORTAR, //32
DODDMW_BINOCULARS, //33 (obviously never used)
DODDMW_SATCHEL, //34
DODDMW_SCOPED_FG42, //35
DODDMW_FOLDING_CARBINE, //36
DODDMW_KAR_BAYONET, //37
DODDMW_SCOPED_ENFIELD, //38
DODDMW_MILLS_BOMB, //39
DODDMW_BRITKNIFE, //40
DODDMW_MORTAR_UNKNOWN, //41 (couldnt find any instance of this actually being used)
DODDMW_GARAND_BUTT, //42 (also used for k43 buttstock)
DODDMW_ENFIELD_BAYONET //43
};you'll notice some big differences (like death msg ids for binoculars, satchels.. two mortars (one of which i couldnt find actually being used by the game anywhere) and the garand_butt is used for both garand & k43 buttstock kills
ive got a lot more testing to do.. but im wondering if maybe the DODW_ constants might be wrong.. or if its another stupid way dod is written where the weapon ids dont match.. cause its causing a shit load of problems when trying to make a death msg with a players current in-hand weapon.. unless its not supposed to match.. lol
for example.. if they are holding a british knife.. and you pass that id (from dod_get_user_weapon) to a death msg, it shows up as a bayonet..
but its kinda hard to test all the DODW_ constants, cause you cant exactly be holding a bayonet or a mortar to check those IDs... but when i get a chance later im gonna check out the weapon ids used in the death forward (common sense is telling me they should match the death msg weapon ids not the DODW_ constant ids)
tho in anycase.. im sure a stock could probably be made to convert the DODW_ constant ids over to the proper death message weapon ids
** on a side note, i noticed with the DODW_ constants, that the DODW_MILLS_BOMB doesnt seem to be used (at least anywhere ive seen so far).. it always comes up as a HANDGRENADE (or with the _EX on the end for a live nade thats been picked back up) so im assuming its no different whether its US or british for the nades and the map info determines what model is shown... **
anyway anyone else notice this? as im sure this *might* cause some problems with plugins that are using these things.. but ill post when once i have some more information.. and depending what i can come up with i might put in a bug report on the amxx site to at least get the death message weapon ids added to the dodconst.inc file