View Single Post
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 06-25-2011 , 03:39   Re: Hamsandwich Updating
#28

Here is correct gearbox offsets (i'm checked it with "dance" crashes )
Need do update git.
Code:
@section gearbox windows
	pev 4
	base 0x0
	
	spawn 0
	precache 1
	keyvalue 2
	objectcaps 5
	activate 6
	setobjectcollisionbox 7
	classify 8
	deathnotice 9
	traceattack 10
	takedamage 11
	takehealth 12
	killed 13
	bloodcolor 14
	tracebleed 15
	istriggered 16
	mymonsterpointer 17
	mysquadmonsterpointer 18
	gettogglestate 19
	addpoints 21
	addpointstoteam 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
	teamid 42
	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
	
	player_jump 127
	player_duck 128
	player_prethink 129
	player_postthink 130
	player_getgunposition 121
	player_shouldfadeondeath 62
	player_impulsecommands 132
	player_updateclientdata  131
	
	item_addtoplayer 60
	item_addduplicate 61
	item_getiteminfo 62
	item_candeploy 63
	item_deploy 64
	item_canholster 65
	item_holster 66
	item_updateiteminfo 67
	item_preframe 68
	item_postframe 69
	item_drop 70
	item_kill 71
	item_attachtoplayer 72
	item_primaryammoindex 73
	item_secondaryammoindex 74
	item_updateclientdata 76
	item_getweaponptr 77
	item_itemslot 78
	
	weapon_extractammo 79
	weapon_extractclipammo 80
	weapon_addweapon 81
	weapon_playemptysound 82
	weapon_resetemptysound 83
	weapon_sendweaponanim 84
	weapon_isusable 85
	weapon_primaryattack 86
	weapon_secondaryattack 87
	weapon_reload 88
	weapon_weaponidle 89
	weapon_retireweapon 90
	weapon_shouldweaponidle 91
	weapon_usedecrement 92
@end
EDIT: Little mistake here: https://github.com/joaquimandrade/Ha.../ham_const.inc

672:
Code:
* Execute params:	ExecuteHam(Ham_Item_Drop, this);
-->
Code:
* Execute params:	ExecuteHam(Ham_Item_Kill, this);
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community

Last edited by KORD_12.7; 06-25-2011 at 04:31.
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7