#I need help on how to make TF2 Weapons but more Original

1 messages · Page 1 of 1 (latest)

magic canopy
#

for the rocket launcher you could get the rotation and if it’s like rotated down have the velocity add be a lot and like a sort of recoil

#

like this

#

if it’s rotation is in the red you would have it as false and no set velocity

#

and if it’s in the green it would be true you could set velocity

#

@mystic hedge

runic cypress
magic canopy
#

it’s just a visual representation of the get rotation chip

#

i forgot what value it was

#

it would of made my sense if i said it like that

#

Like x y z w

#

forgot which rotation it is

magic canopy
#

i didn’t say i was gonna help i just gave you the info and a tip to make one of the gun things

runic cypress
#

you don’t need half those chips

#

is the turret automatic?

#

or player handled

#

use a raycast

gloomy swallow
#

I’d say don’t check the angle it’s aimed at

#

A better solution would be to get distance from the hit location or directly from the (assumably present) explosion emitter

#

Forward vector and position of rocket launcher -> raycast with range of your choice

If raycast hits, get [player position - raycast hit position], then multiply by a number of your choice. This number changes blast force

Add velocity to player equal to the product of that last multiply, max speed is your choice

#

Get forward vector and position of handle to put into the raycast