Additional hitzones?
Would it be possible to add a hitzone to a player? Say a hitzone for a model the player is holding? In example, if i were to make a player weaponmodel test.mdl, could I make an if statement if a player model is test.mdl, then make test.mdl also have its own hitzone? So you can shoot a players test.mdl and after it takes how much damage you want it to, it would run a function?
|
geuss not.
|
Quote:
If you have any more questions, msg me privately via msn. |
Just one question tho... Isn't the true hitbox made when the model is made. I Beleive that is how its "officially" done. But Ronkkrop's idea would also work. Gotta love math ;).
|
Quote:
yes but the hitzones are mod dependant im quite sure, you cant just add a new hitzone to the model and expect hl/cs/whatever to "understand" it. |
Just catch traceline and see what entity the player is looking at and check curweapon to see if they fired :P
|
Quote:
|
When you user get_user_aiming, it returns the part of the body (hitbox) that you are looking at on a player, if you are looking at one. How does AMX, or therefore HL, decide which hitbox is which? Can you name the hitboxes within the model and HL interprets that?
|
Yes i have found it. The hitboxes are made within the model. So when you make the model you must make a hitbox for you. I beleive you give that hitbox an id of some sort. Then you must write something that calculates the dmg for the hitbox.
|
Quote:
You cant assign it an id... as i said earlier, its mod specific. So unless you can change the code for the mod, your hooped. |
| All times are GMT -4. The time now is 19:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.