View Single Post
Author Message
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-04-2014 , 04:01   [solved][Bazooka] Problem with vectors and impact origin
Reply With Quote #1

Made this out of BigBud's Jetpack+Bazooka 3.2.

It mainly has 2 problems:
1. The rocket goes off the aim(doesn't go where I'm pointing my crosshair)
http://i40.tinypic.com/6z936p.jpg
Tried every possible method in the rocket firing function(different ways of getting the start and end origins), none fixed it.

2. On touch, the rocket origin returns wrong coordinates.
As you can see in the code, I tried a find_ent_in_sphere, but the rocket origin on hit is nowhere near the actual hit spot, making sometimes breakable entities use and players taking damage that are at a very long distance away from the rocket on impact.

This is the code, please help me. I literally tried everything I know and got nowhere with it.
Spoiler




EDIT: 2 years later, the first problem is solved.
The problem was that I was setting a higher velocity to the rocket entity than the sv_maxvelocity cvar value, as described here: https://github.com/ValveSoftware/halflife/issues/1723
The new fixed version of the plugin can be found here: https://forums.alliedmods.net/showthread.php?t=273814
Attached Files
File Type: sma Get Plugin or Get Source (zpnm_extra_bazooka.sma - 540 views - 18.3 KB)
__________________

Last edited by georgik57; 08-09-2016 at 11:56.
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57