Closed sigurdjoergensen closed 2 months ago
new problem, characters are sitting a bit above the hitbox. i dont know if this is worse or can be easily fixed
I tried the vehicle_feet_passenger of the model but this breaks the physics completely, i give up B-)
So far, I can't seem to find any built-in way to move the driver around. The only option in this case would be manually moving around the player after they enter the seat (Unparent, move, parent), but I assume that will have other complications arise. Personally I don't think it's worth the effort.
I moved the position of the playermodel by changing the vehicle_feet_passenger0 attachment in the decompiled models coordinate from 20 to 17 in the up down axis, and to fix the collison model being rotated from the actual visual model, i just kept old physics model as it breaks on compilation for some reason. The player model is still slighly misaligned from the wireframe, but thats because of the pose itself and the entire chair model would have to be changed to fix that. here are pictures:
Could you remove the conflicting model files from this?
Could you remove the conflicting model files from this?
@sigurdjoergensen This is pretty much the only thing required to have this PR approved and merged.
Was this what you wanted? Do mind that the player alignment with hitbox might be kind of shit
Replaces the rollercoaster animation of playerstart chairs with the HL2MP_SIT animation. This makes the playermodel actually stay inside the hitbox and avoids hands and feet sticking out from the armor. The chairs without rollercoaster animation are left alone. It's done in the same way as Garry's Mod does it: https://github.com/Facepunch/garrysmod/blob/master/garrysmod/lua/autorun/base_vehicles.lua