From 561e9d87dfe374662c189bc76ea65bf4b40f07e7 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 24 May 2013 22:28:06 -0500 Subject: [PATCH] Updated ham sandwich offsets for TFC. --- configs/hamdata.ini | 306 ++++++++++++++++++++++++++++++-------------- 1 file changed, 207 insertions(+), 99 deletions(-) diff --git a/configs/hamdata.ini b/configs/hamdata.ini index 0e2bdda1..a8a10268 100644 --- a/configs/hamdata.ini +++ b/configs/hamdata.ini @@ -710,110 +710,110 @@ ; TFC Does not have the following "standard" entries in its vtable: ; addpoints, addpointstoteam @section tfc linux - pev 0 - base 0x470 + pev 4 + base 0x0 - spawn 3 - precache 4 - keyvalue 5 - objectcaps 8 - activate 9 - setobjectcollisionbox 10 - classify 11 - deathnotice 12 - traceattack 13 - takedamage 14 - takehealth 15 - killed 16 - bloodcolor 17 - tracebleed 18 - istriggered 19 - mymonsterpointer 20 - mysquadmonsterpointer 21 - gettogglestate 22 - addplayeritem 23 - removeplayeritem 24 - giveammo 25 - getdelay 26 - ismoving 27 - overridereset 28 - damagedecal 29 - settogglestate 30 - startsneaking 31 - stopsneaking 32 - oncontrols 33 - issneaking 34 - isalive 35 - isbspmodel 36 - reflectgauss 37 - hastarget 38 - isinworld 39 - isplayer 40 - isnetclient 41 - getnexttarget 43 - think 44 - touch 45 - use 46 - blocked 47 - respawn 48 - updateowner 49 - fbecomeprone 50 - center 51 - eyeposition 52 - earposition 53 - bodytarget 54 - illumination 55 - fvisible 56 - fvecvisible 57 + spawn 2 + precache 3 + keyvalue 4 + objectcaps 7 + activate 8 + setobjectcollisionbox 9 + classify 10 + deathnotice 11 + traceattack 12 + takedamage 13 + takehealth 14 + killed 15 + bloodcolor 16 + tracebleed 17 + istriggered 18 + mymonsterpointer 19 + mysquadmonsterpointer 20 + gettogglestate 21 + addplayeritem 22 + removeplayeritem 23 + giveammo 24 + getdelay 25 + ismoving 26 + overridereset 27 + damagedecal 28 + settogglestate 29 + startsneaking 30 + stopsneaking 31 + oncontrols 32 + issneaking 33 + isalive 34 + isbspmodel 35 + reflectgauss 36 + hastarget 37 + isinworld 38 + isplayer 39 + isnetclient 40 + getnexttarget 42 + think 43 + touch 44 + use 45 + blocked 46 + respawn 47 + updateowner 48 + fbecomeprone 49 + center 50 + eyeposition 51 + earposition 52 + bodytarget 53 + illumination 54 + fvisible 55 + fvecvisible 56 - player_jump 135 - player_duck 136 - player_prethink 137 - player_postthink 138 - player_shouldfadeondeath 69 - player_impulsecommands 139 + player_jump 134 + player_duck 135 + player_prethink 136 + player_postthink 137 + player_shouldfadeondeath 68 + player_impulsecommands 138 - item_addtoplayer 67 - item_addduplicate 68 - item_getiteminfo 70 - item_candeploy 71 - item_deploy 72 - item_canholster 73 - item_holster 74 - item_updateiteminfo 75 - item_preframe 76 - item_postframe 77 - item_drop 78 - item_kill 79 - item_attachtoplayer 80 - item_primaryammoindex 81 - item_secondaryammoindex 82 - item_updateclientdata 83 - item_getweaponptr 84 - item_itemslot 69 + item_addtoplayer 66 + item_addduplicate 67 + item_getiteminfo 69 + item_candeploy 70 + item_deploy 71 + item_canholster 72 + item_holster 73 + item_updateiteminfo 74 + item_preframe 75 + item_postframe 76 + item_drop 77 + item_kill 78 + item_attachtoplayer 79 + item_primaryammoindex 80 + item_secondaryammoindex 81 + item_updateclientdata 82 + item_getweaponptr 83 + item_itemslot 68 - weapon_extractammo 85 - weapon_extractclipammo 86 - weapon_addweapon 87 - weapon_playemptysound 88 - weapon_resetemptysound 89 - weapon_sendweaponanim 90 - weapon_isusable 91 - weapon_primaryattack 92 - weapon_secondaryattack 93 - weapon_reload 94 - weapon_weaponidle 95 - weapon_retireweapon 96 - weapon_shouldweaponidle 97 + weapon_extractammo 84 + weapon_extractclipammo 85 + weapon_addweapon 86 + weapon_playemptysound 87 + weapon_resetemptysound 88 + weapon_sendweaponanim 89 + weapon_isusable 90 + weapon_primaryattack 91 + weapon_secondaryattack 92 + weapon_reload 93 + weapon_weaponidle 94 + weapon_retireweapon 95 + weapon_shouldweaponidle 96 - tfc_engineeruse 58 - tfc_finished 59 - tfc_empexplode 60 - tfc_calcempdmgrad 61 - tfc_takeempblast 62 - tfc_empremove 63 - tfc_takeconcussionblast 64 - tfc_concuss 65 + tfc_engineeruse 57 + tfc_finished 58 + tfc_empexplode 59 + tfc_calcempdmgrad 60 + tfc_takeempblast 61 + tfc_empremove 62 + tfc_takeconcussionblast 63 + tfc_concuss 64 @end @section tfc windows pev 4 @@ -922,6 +922,114 @@ tfc_takeconcussionblast 62 tfc_concuss 63 @end + +@section tfc mac + pev 4 + base 0x0 + + spawn 2 + precache 3 + keyvalue 4 + objectcaps 7 + activate 8 + setobjectcollisionbox 9 + classify 10 + deathnotice 11 + traceattack 12 + takedamage 13 + takehealth 14 + killed 15 + bloodcolor 16 + tracebleed 17 + istriggered 18 + mymonsterpointer 19 + mysquadmonsterpointer 20 + gettogglestate 21 + addplayeritem 22 + removeplayeritem 23 + giveammo 24 + getdelay 25 + ismoving 26 + overridereset 27 + damagedecal 28 + settogglestate 29 + startsneaking 30 + stopsneaking 31 + oncontrols 32 + issneaking 33 + isalive 34 + isbspmodel 35 + reflectgauss 36 + hastarget 37 + isinworld 38 + isplayer 39 + isnetclient 40 + getnexttarget 42 + think 43 + touch 44 + use 45 + blocked 46 + respawn 47 + updateowner 48 + fbecomeprone 49 + center 50 + eyeposition 51 + earposition 52 + bodytarget 53 + illumination 54 + fvisible 55 + fvecvisible 56 + + player_jump 134 + player_duck 135 + player_prethink 136 + player_postthink 137 + player_shouldfadeondeath 68 + player_impulsecommands 138 + + item_addtoplayer 66 + item_addduplicate 67 + item_getiteminfo 69 + item_candeploy 70 + item_deploy 71 + item_canholster 72 + item_holster 73 + item_updateiteminfo 74 + item_preframe 75 + item_postframe 76 + item_drop 77 + item_kill 78 + item_attachtoplayer 79 + item_primaryammoindex 80 + item_secondaryammoindex 81 + item_updateclientdata 82 + item_getweaponptr 83 + item_itemslot 68 + + weapon_extractammo 84 + weapon_extractclipammo 85 + weapon_addweapon 86 + weapon_playemptysound 87 + weapon_resetemptysound 88 + weapon_sendweaponanim 89 + weapon_isusable 90 + weapon_primaryattack 91 + weapon_secondaryattack 92 + weapon_reload 93 + weapon_weaponidle 94 + weapon_retireweapon 95 + weapon_shouldweaponidle 96 + + tfc_engineeruse 57 + tfc_finished 58 + tfc_empexplode 59 + tfc_calcempdmgrad 60 + tfc_takeempblast 61 + tfc_empremove 62 + tfc_takeconcussionblast 63 + tfc_concuss 64 +@end + ; ns's linux binary is compiled with gcc 3.3, so the "base" is 0, and pev is 4 @section ns linux pev 4