Fixed vtable for TFC and NS

This commit is contained in:
Steve Dudenhoeffer 2007-05-11 16:54:26 +00:00
parent 1081e84981
commit 9b0ed67c9c
2 changed files with 163 additions and 162 deletions

View File

@ -550,38 +550,38 @@
player_shouldfadeondeath 69 player_shouldfadeondeath 69
player_impulsecommands 139 player_impulsecommands 139
item_addtoplayer 58 item_addtoplayer 67
item_addduplicate 59 item_addduplicate 68
item_getiteminfo 61 item_getiteminfo 70
item_candeploy 62 item_candeploy 71
item_deploy 63 item_deploy 72
item_canholster 64 item_canholster 73
item_holster 65 item_holster 74
item_updateiteminfo 66 item_updateiteminfo 75
item_preframe 67 item_preframe 76
item_postframe 68 item_postframe 77
item_drop 69 item_drop 78
item_kill 70 item_kill 79
item_attachtoplayer 71 item_attachtoplayer 80
item_primaryammoindex 72 item_primaryammoindex 81
item_secondaryammoindex 73 item_secondaryammoindex 82
item_updateclientdata 74 item_updateclientdata 83
item_getweaponptr 75 item_getweaponptr 84
item_itemslot 60 item_itemslot 69
weapon_extractammo 76 weapon_extractammo 85
weapon_extractclipammo 77 weapon_extractclipammo 86
weapon_addweapon 78 weapon_addweapon 87
weapon_playemptysound 79 weapon_playemptysound 88
weapon_resetemptysound 80 weapon_resetemptysound 89
weapon_sendweaponanim 81 weapon_sendweaponanim 90
weapon_isusable 82 weapon_isusable 91
weapon_primaryattack 83 weapon_primaryattack 92
weapon_secondaryattack 84 weapon_secondaryattack 93
weapon_reload 85 weapon_reload 94
weapon_weaponidle 86 weapon_weaponidle 95
weapon_retireweapon 87 weapon_retireweapon 96
weapon_shouldweaponidle 88 weapon_shouldweaponidle 97
tfc_engineeruse 58 tfc_engineeruse 58
tfc_finished 59 tfc_finished 59
@ -649,6 +649,7 @@
fvisible 54 fvisible 54
fvecvisible 55 fvecvisible 55
player_jump 133 player_jump 133
player_duck 134 player_duck 134
player_prethink 135 player_prethink 135
@ -656,38 +657,38 @@
player_shouldfadeondeath 67 player_shouldfadeondeath 67
player_impulsecommands 137 player_impulsecommands 137
item_addtoplayer 56 item_addtoplayer 65
item_addduplicate 57 item_addduplicate 66
item_getiteminfo 59 item_getiteminfo 68
item_candeploy 60 item_candeploy 69
item_deploy 61 item_deploy 70
item_canholster 62 item_canholster 71
item_holster 63 item_holster 72
item_updateiteminfo 64 item_updateiteminfo 73
item_preframe 65 item_preframe 74
item_postframe 66 item_postframe 75
item_drop 67 item_drop 76
item_kill 68 item_kill 77
item_attachtoplayer 69 item_attachtoplayer 78
item_primaryammoindex 70 item_primaryammoindex 79
item_secondaryammoindex 71 item_secondaryammoindex 80
item_updateclientdata 72 item_updateclientdata 81
item_getweaponptr 73 item_getweaponptr 82
item_itemslot 58 item_itemslot 67
weapon_extractammo 74 weapon_extractammo 83
weapon_extractclipammo 75 weapon_extractclipammo 84
weapon_addweapon 76 weapon_addweapon 85
weapon_playemptysound 77 weapon_playemptysound 86
weapon_resetemptysound 78 weapon_resetemptysound 87
weapon_sendweaponanim 79 weapon_sendweaponanim 88
weapon_isusable 80 weapon_isusable 89
weapon_primaryattack 81 weapon_primaryattack 90
weapon_secondaryattack 82 weapon_secondaryattack 91
weapon_reload 83 weapon_reload 92
weapon_weaponidle 84 weapon_weaponidle 93
weapon_retireweapon 85 weapon_retireweapon 94
weapon_shouldweaponidle 86 weapon_shouldweaponidle 95
tfc_engineeruse 56 tfc_engineeruse 56
tfc_finished 57 tfc_finished 57
@ -703,109 +704,109 @@
pev 4 pev 4
base 0x0 base 0x0
spawn 1 spawn 0
precache 2 precache 1
keyvalue 3 keyvalue 2
objectcaps 6 objectcaps 5
activate 7 activate 6
setobjectcollisionbox 8 setobjectcollisionbox 7
classify 9 classify 8
deathnotice 10 deathnotice 9
traceattack 11 traceattack 10
takedamage 12 takedamage 11
takehealth 13 takehealth 12
killed 15 killed 14
bloodcolor 17 bloodcolor 16
tracebleed 18 tracebleed 17
istriggered 19 istriggered 18
mymonsterpointer 20 mymonsterpointer 19
mysquadmonsterpointer 21 mysquadmonsterpointer 20
gettogglestate 22 gettogglestate 21
addpoints 23 addpoints 22
addpointstoteam 24 addpointstoteam 23
addplayeritem 25 addplayeritem 24
removeplayeritem 26 removeplayeritem 25
giveammo 27 giveammo 26
getdelay 28 getdelay 27
ismoving 29 ismoving 28
overridereset 30 overridereset 29
damagedecal 31 damagedecal 30
settogglestate 32 settogglestate 31
startsneaking 33 startsneaking 32
stopsneaking 34 stopsneaking 33
oncontrols 35 oncontrols 34
issneaking 36 issneaking 35
isalive 37 isalive 36
isbspmodel 38 isbspmodel 37
reflectgauss 39 reflectgauss 38
hastarget 40 hastarget 39
isinworld 41 isinworld 40
isplayer 42 isplayer 41
isnetclient 43 isnetclient 42
teamid 44 teamid 43
getnexttarget 47 getnexttarget 46
think 48 think 47
touch 49 touch 48
use 50 use 49
blocked 51 blocked 50
respawn 53 respawn 52
updateowner 54 updateowner 53
fbecomeprone 55 fbecomeprone 54
center 56 center 55
eyeposition 57 eyeposition 56
earposition 58 earposition 57
bodytarget 59 bodytarget 58
illumination 60 illumination 59
fvisible 61 fvisible 60
fvecvisible 62 fvecvisible 61
player_jump 84 player_jump 83
player_duck 85 player_duck 84
player_prethink 86 player_prethink 85
player_postthink 87 player_postthink 86
player_getgunposition 88 player_getgunposition 87
player_shouldfadeondeath 73 player_shouldfadeondeath 72
player_impulsecommands 102 player_impulsecommands 101
player_updateclientdata 100 player_updateclientdata 99
item_addtoplayer 65 item_addtoplayer 64
item_addduplicate 66 item_addduplicate 65
item_getiteminfo 69 item_getiteminfo 68
item_candeploy 70 item_candeploy 69
item_deploy 71 item_deploy 70
item_canholster 72 item_canholster 71
item_holster 73 item_holster 72
item_updateiteminfo 75 item_updateiteminfo 74
item_preframe 76 item_preframe 75
item_postframe 77 item_postframe 76
item_drop 78 item_drop 77
item_kill 79 item_kill 78
item_attachtoplayer 80 item_attachtoplayer 79
item_primaryammoindex 81 item_primaryammoindex 80
item_secondaryammoindex 82 item_secondaryammoindex 81
item_updateclientdata 83 item_updateclientdata 82
item_getweaponptr 84 item_getweaponptr 83
item_itemslot 85 item_itemslot 84
weapon_extractammo 86 weapon_extractammo 85
weapon_extractclipammo 87 weapon_extractclipammo 86
weapon_addweapon 88 weapon_addweapon 87
weapon_playemptysound 89 weapon_playemptysound 88
weapon_resetemptysound 90 weapon_resetemptysound 89
weapon_sendweaponanim 95 weapon_sendweaponanim 94
weapon_isusable 74 weapon_isusable 73
weapon_primaryattack 99 weapon_primaryattack 98
weapon_secondaryattack 100 weapon_secondaryattack 99
weapon_reload 101 weapon_reload 100
weapon_weaponidle 102 weapon_weaponidle 101
weapon_retireweapon 103 weapon_retireweapon 102
weapon_shouldweaponidle 104 weapon_shouldweaponidle 103
weapon_usedecrement 105 weapon_usedecrement 104
ns_getpointvalue 14 ns_getpointvalue 13
ns_awardkill 16 ns_awardkill 15
ns_resetentity 46 ns_resetentity 45
ns_updateonremove 52 ns_updateonremove 51
@end @end
@section ns windows @section ns windows
pev 4 pev 4

View File

@ -666,7 +666,7 @@ public __fatal_ham_error(Ham:id, HamError:err, const reason[])
new func=get_func_id("HamFilter", -1); new func=get_func_id("HamFilter", -1);
new bool:fail=true; new bool:fail=true;
if (callfunc_begin_i(func, -1)==1) if (func != -1 && callfunc_begin_i(func, -1)==1)
{ {
callfunc_push_int(_:id); callfunc_push_int(_:id);
callfunc_push_int(_:err); callfunc_push_int(_:err);