Raised This Month: $32 Target: $400
 8% 

SET MODELINDEX OFFSET = 1 does not work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
condoriano90
Member
Join Date: May 2020
Old 06-08-2020 , 13:45   SET MODELINDEX OFFSET = 1 does not work
Reply With Quote #1

I don't know if it's just me but after having SET MODELINDEX OFFSET = 1, it doesn't register head shots. The damage is the same as if I'm shooting other body parts.

I looked deeper into this and maybe the offset OFFSET_MODELINDEX 491 was wrong/changed or maybe there's something missing in the .mdl but I made sure my custom model had Bip01 Head bone, even HLMV shows the hit boxes correctly.

If anyone know how to solve this please help.
condoriano90 is offline
hellmoss
Senior Member
Join Date: Oct 2009
Location: ZOMBIE PLAGUE
Old 06-09-2020 , 11:51   Re: SET MODELINDEX OFFSET = 1 does not work
Reply With Quote #2

This is an example code of a model.
Code:
// 21 hit box(es)
$hbox 3 "Bip01 Pelvis" -4.690000 -4.440000 -6.750000 4.000000 5.560000 6.750000
$hbox 6 "Bip01 L Thigh" 2.660000 -3.690000 -3.090000 18.160000 4.880000 3.310000
$hbox 6 "Bip01 L Calf" 0.380000 -3.970000 -2.840000 17.600000 4.000000 2.940000
$hbox 6 "Bip01 L Foot" 0.850000 -3.240000 -2.640000 5.730000 8.530000 3.170000
$hbox 7 "Bip01 R Thigh" 2.470000 -3.690000 -3.160000 18.129999 4.880000 3.380000
$hbox 7 "Bip01 R Calf" 0.310000 -3.970000 -2.840000 17.600000 3.940000 2.970000
$hbox 7 "Bip01 R Foot" 0.850000 -3.240000 -2.640000 5.730000 8.530000 3.170000
$hbox 3 "Bip01 Spine1" -3.250000 -5.500000 -5.500000 4.830000 5.500000 5.500000
$hbox 2 "Bip01 Spine2" -0.060000 -5.530000 -7.590000 8.000000 7.000000 7.590000
$hbox 2 "Bip01 Spine3" -2.250000 -6.810000 -6.310000 6.500000 5.090000 6.310000
$hbox 2 "Bip01 Neck" -3.110000 -1.500000 -3.000000 2.050000 3.500000 3.000000
$hbox 1 "Bip01 Head" -0.330000 -4.500000 -2.500000 8.000000 4.500000 2.500000
$hbox 4 "Bip01 L Clavicle" 0.940000 -2.880000 -4.130000 5.440000 4.280000 3.500000
$hbox 4 "Bip01 L UpperArm" -2.160000 -2.340000 -2.560000 11.560000 3.410000 2.380000
$hbox 4 "Bip01 L Forearm" 0.590000 -1.810000 -2.190000 10.750000 2.840000 2.410000
$hbox 4 "Bip01 L Hand" -0.132201 -1.903020 -2.238530 4.862900 2.078240 2.369790
$hbox 5 "Bip01 R Clavicle" 1.380000 -2.840000 -3.560000 5.690000 4.310000 4.310000
$hbox 5 "Bip01 R UpperArm" -1.880000 -2.470000 -2.160000 11.810000 3.280000 2.810000
$hbox 5 "Bip01 R Forearm" 0.440000 -1.970000 -2.340000 10.590000 2.720000 2.220000
$hbox 5 "Bip01 R Hand" -0.132201 -1.903020 -2.238530 4.862900 2.078240 2.369790
$hbox 8 "Bip01 L Hand" -16.100000 -6.500000 -19.000000 10.600000 1.500000 33.000000
Make sure that after "$hbox" you have a number, 1 through 8, these numbers represent the hitzone damage multipliers
1 - head
2 - chest
3 - stomach
4 - left arm, etc
You can take a look here: https://developer.valvesoftware.com/wiki/$hbox
Make sure these are correct in your model, if they are all 0, well, problem lies therein. You'd have to edit qc and recompile.
__________________
Quote:
Originally Posted by Kakarot47 View Post
There is no bug. with 100% gurenty

Last edited by hellmoss; 06-09-2020 at 11:55.
hellmoss is offline
condoriano90
Member
Join Date: May 2020
Old 06-09-2020 , 18:41   Re: SET MODELINDEX OFFSET = 1 does not work
Reply With Quote #3

Quote:
Originally Posted by hellmoss View Post
This is an example code of a model.
Code:
// 21 hit box(es)
$hbox 3 "Bip01 Pelvis" -4.690000 -4.440000 -6.750000 4.000000 5.560000 6.750000
$hbox 6 "Bip01 L Thigh" 2.660000 -3.690000 -3.090000 18.160000 4.880000 3.310000
$hbox 6 "Bip01 L Calf" 0.380000 -3.970000 -2.840000 17.600000 4.000000 2.940000
$hbox 6 "Bip01 L Foot" 0.850000 -3.240000 -2.640000 5.730000 8.530000 3.170000
$hbox 7 "Bip01 R Thigh" 2.470000 -3.690000 -3.160000 18.129999 4.880000 3.380000
$hbox 7 "Bip01 R Calf" 0.310000 -3.970000 -2.840000 17.600000 3.940000 2.970000
$hbox 7 "Bip01 R Foot" 0.850000 -3.240000 -2.640000 5.730000 8.530000 3.170000
$hbox 3 "Bip01 Spine1" -3.250000 -5.500000 -5.500000 4.830000 5.500000 5.500000
$hbox 2 "Bip01 Spine2" -0.060000 -5.530000 -7.590000 8.000000 7.000000 7.590000
$hbox 2 "Bip01 Spine3" -2.250000 -6.810000 -6.310000 6.500000 5.090000 6.310000
$hbox 2 "Bip01 Neck" -3.110000 -1.500000 -3.000000 2.050000 3.500000 3.000000
$hbox 1 "Bip01 Head" -0.330000 -4.500000 -2.500000 8.000000 4.500000 2.500000
$hbox 4 "Bip01 L Clavicle" 0.940000 -2.880000 -4.130000 5.440000 4.280000 3.500000
$hbox 4 "Bip01 L UpperArm" -2.160000 -2.340000 -2.560000 11.560000 3.410000 2.380000
$hbox 4 "Bip01 L Forearm" 0.590000 -1.810000 -2.190000 10.750000 2.840000 2.410000
$hbox 4 "Bip01 L Hand" -0.132201 -1.903020 -2.238530 4.862900 2.078240 2.369790
$hbox 5 "Bip01 R Clavicle" 1.380000 -2.840000 -3.560000 5.690000 4.310000 4.310000
$hbox 5 "Bip01 R UpperArm" -1.880000 -2.470000 -2.160000 11.810000 3.280000 2.810000
$hbox 5 "Bip01 R Forearm" 0.440000 -1.970000 -2.340000 10.590000 2.720000 2.220000
$hbox 5 "Bip01 R Hand" -0.132201 -1.903020 -2.238530 4.862900 2.078240 2.369790
$hbox 8 "Bip01 L Hand" -16.100000 -6.500000 -19.000000 10.600000 1.500000 33.000000
Make sure that after "$hbox" you have a number, 1 through 8, these numbers represent the hitzone damage multipliers
1 - head
2 - chest
3 - stomach
4 - left arm, etc
You can take a look here: https://developer.valvesoftware.com/wiki/$hbox
Make sure these are correct in your model, if they are all 0, well, problem lies therein. You'd have to edit qc and recompile.
I came across of that page but I didn't know the group number actually responsible for damage multiplier, otherwise this would have prevented me days of headache. All it said in the page was about NPC and what color they appear in HLMV, they should've stated clearly about damage multiplier! Ahh... anyways, thanks hellmoss!
condoriano90 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode