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

Can somebody implement the rocket following on this RPG please.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SilviuG
New Member
Join Date: Nov 2017
Old 03-25-2021 , 05:31   Can somebody implement the rocket following on this RPG please.
Reply With Quote #1

Can somebody implement the rocket following on this RPG please.
When i shoot with the RPG, i want that the rocket to follow the target.
And also i don't want to be bugs when i buy unlimited bullets, the RPG have to be reloaded before shoting. Thank you.

This is the sma file:
Attached Files
File Type: sma Get Plugin or Get Source (weapon_bazooka.sma - 61 views - 15.3 KB)
SilviuG is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-26-2021 , 07:02   Re: Can somebody implement the rocket following on this RPG please.
Reply With Quote #2

rocket_brain each second

if rocket angles != (( target origin - rocket angles ) => vector to angles ))

shift rocket angles by 30 degree to the right or left with respecting to target angles meaning it won't be greater than it or lower than it in the end.

finally set rocket velocity depending on its direction.

if you want smoothness you can decrease the think time considering to decrease also the shifting angle.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-26-2021 at 07:43.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
SilviuG
New Member
Join Date: Nov 2017
Old 03-31-2021 , 14:43   Re: Can somebody implement the rocket following on this RPG please.
Reply With Quote #3

Bro i don't know how to implement it.
I am that type of guy that is understanding more from examples instead of "take this and do it yourself."
If you can do that into sma, thats perfect.
Thanks of understanding.
SilviuG is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-31-2021 , 14:49   Re: Can somebody implement the rocket following on this RPG please.
Reply With Quote #4

AlliedModders Forum Index > AMX Mod X > Scripting > Scripting Help
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
SilviuG
New Member
Join Date: Nov 2017
Old 03-31-2021 , 17:07   Re: Can somebody implement the rocket following on this RPG please.
Reply With Quote #5

Well, here i am...
SilviuG is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 03-31-2021 , 17:20   Re: Can somebody implement the rocket following on this RPG please.
Reply With Quote #6

https://forums.alliedmods.net/showthread.php?t=330763
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
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 10:37.


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