#Ca$h Money
1 messages · Page 1 of 1 (latest)
Yeah, sure!
Right now it looks like you have to aim directly at the cash register model in order to get the "E" prompt. That can be a little bit annoying to aim exactly at (especially when trying to make a quick robbery) so I think it might be helpful if you changed the detection method to be a little bit "forgiving"
Instead of using the player's eyetrace hit entity, perhaps you could use this: https://wiki.facepunch.com/gmod/util.IntersectRayWithOBB
Performs a Ray-OBB (Orientated Bounding Box) intersection and returns position, normal and the fraction if there was an intersection.
This would allow you to expand the size of the "hitbox" for the cash register model
Oh, thanks for that!
No problem at all
Depending on how it winds up feeling to use, you might also try something like https://wiki.facepunch.com/gmod/util.IntersectRayWithSphere
Performs a ray-sphere intersection and returns the intersection positions or nil.
It would definitely work best with models that are approximately cube or sphere shaped, which the cash register is
I was looking for that
Thank you!
I am going to make a few more games like that
I hope you post them in #waywo-old when you do!