Raised This Month: $51 Target: $400
 12% 

[solved][Bazooka] Problem with vectors and impact origin


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 534 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
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 04-12-2014 , 21:46   Re: [Bazooka] Problem with vectors and impact origin
Reply With Quote #2

BUMP

Please help.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 08-18-2014 , 11:01   Re: [Bazooka] Problem with vectors and impact origin
Reply With Quote #3

bump
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-06-2015 , 23:26   Re: [Bazooka] Problem with vectors and impact origin
Reply With Quote #4

bump lol
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-07-2015 , 01:56   Re: [Bazooka] Problem with vectors and impact origin
Reply With Quote #5

lol massive bump bump bump.. actually you can look at my jetpack bazooka plugin. the aim never lies.. search at zp sub plugin submision section.
yokomo is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-07-2015 , 02:35   Re: [Bazooka] Problem with vectors and impact origin
Reply With Quote #6

Quote:
Originally Posted by yokomo View Post
lol massive bump bump bump.. actually you can look at my jetpack bazooka plugin. the aim never lies.. search at zp sub plugin submision section.
Yes I already separated your code to bazooka and jetpack. The jetpack is highly improved(PM me for sma), and the bazooka has been left work in progress for about a year(no time for it lol), but I'm just curious to see what the hell is wrong with this one as many of my scripter friends tried to help me and couldn't find the problem.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 08-09-2016 , 11:54   Re: [Solved][Bazooka] Problem with vectors and impact origin
Reply With Quote #7

First problem fixed. Second not tested.
Quote:
Originally Posted by georgik57 View Post
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
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode