AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [solved][Bazooka] Problem with vectors and impact origin (https://forums.alliedmods.net/showthread.php?t=236390)

georgik57 03-04-2014 04:01

[solved][Bazooka] Problem with vectors and impact origin
 
1 Attachment(s)
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

georgik57 04-12-2014 21:46

Re: [Bazooka] Problem with vectors and impact origin
 
BUMP

Please help.

georgik57 08-18-2014 11:01

Re: [Bazooka] Problem with vectors and impact origin
 
bump

georgik57 02-06-2015 23:26

Re: [Bazooka] Problem with vectors and impact origin
 
bump lol

yokomo 02-07-2015 01:56

Re: [Bazooka] Problem with vectors and impact origin
 
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.

georgik57 02-07-2015 02:35

Re: [Bazooka] Problem with vectors and impact origin
 
Quote:

Originally Posted by yokomo (Post 2259494)
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 08-09-2016 11:54

Re: [Solved][Bazooka] Problem with vectors and impact origin
 
First problem fixed. Second not tested.
Quote:

Originally Posted by georgik57 (Post 2107188)
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



All times are GMT -4. The time now is 11:32.

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