Player hitbox

Please post any questions about developing your plugin here. Please use the search function before posting!
DJiSer
Junior Member
Posts: 20
Joined: Sat May 10, 2014 2:44 pm

Player hitbox

Postby DJiSer » Sun Feb 15, 2015 9:21 am

It's possible to change Player hitboxes?.Im try to change "m_Collision.m_vecMins","m_Collision.m_vecMaxs" properties,no result,whey changed to standart value.
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Sun Feb 15, 2015 5:58 pm

What are you trying to achieve? A hitbox is not the same like a collision box. So, could you please be more specific what you want to do?
DJiSer
Junior Member
Posts: 20
Joined: Sat May 10, 2014 2:44 pm

Postby DJiSer » Sun Feb 15, 2015 8:37 pm

I want to change player's hitbox(for example headcrab model have human's standart hitboxes).
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Sun Feb 15, 2015 9:30 pm

You should rather recompile your models with their proper skeleton bones.
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Sun Feb 15, 2015 9:46 pm

Yeah, I agree. The hitbox is usually shipped with the model file.

I guess we can change the hitboxes (yes, plural: it's not just a single box you can resize) by using this header, but as you can see it's pretty complex. :D
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Sun Feb 15, 2015 10:23 pm

Changing data server-side may be enough for the tasks done by the server, but clients will still have old data precached. Recompiling and shipping a new model to clients is still the best option.
DJiSer
Junior Member
Posts: 20
Joined: Sat May 10, 2014 2:44 pm

Postby DJiSer » Sun Feb 15, 2015 11:06 pm

When i open model with CS:GO SDK Model Viewer, crab has normal bones and hitboxes.
Image
Also Source Mod's "Prop Hunt" has different hitboxes for barrles,plants and etc.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 109 guests