[TF2] Homing Rocket v2.4.0.9 (13.12.12)
4 Attachment(s)
WARNING!
This plugin could change THE RULES What is it? Point your rockets to the point you are aiming at.How it looks like? Required: SDKHooks 1.3+How to use? Just click Attack2 button while holding rocket launcherCVars & CMDs: PHP Code:
Original plugin by RIKUSYO.Links: Changelog: http://files.xpenia.org/sourcemod/tf2hr/ |
Re: [TF2] Homing Rocket
I don't get exactly what it does... Do you select a target and shoot? Or does it follow the cross like in HL2?
|
Re: [TF2] Homing Rocket
it follow the cross like in HL2
|
Re: [TF2] Homing Rocket
Fun idea, but a better way to code this would be with the Think hook with SDKHooks rather than doing all this expensive code in OnGameFrame. SDKHooks would be much quicker and would use far less resources (you don't need all these timers and an array of tries for each player). I've done homing rockets in SourcePawn using SDKHooks, it works wonders. The reason I suggest that you use SDKHooks is because tries have excellent lookup times, but can become sluggish when adding more keys to them.
If you want an example of decent tracking code, take a look at TFDodgeball's tracking code. The only thing you'll have to compensate for is the CBaseEntity::FVisible function, because there's no way to pass a NULL double pointer CBaseEntity into a SDKCall from sourcepawn as of now, but a TraceRay can be used to make up for that (I think KAC has some decent visibility-checking code in the anti-wallhack module :D) Also, instead of setting the angles and velocity with SetEntPropVector, take a look at TeleportEntity That is all. |
Re: [TF2] Homing Rocket
if someone makes a gunship, I will be very very happy!!!!!
|
Re: [TF2] Homing Rocket
For future updates, could you add an admin flag for this? So only admins can do it?
|
Re: [TF2] Homing Rocket
Im not sure how well this works but, there have been private plugins that do this for a while using that sidewinder extension. :p As Afronanny said, using ongameframe for something like this is expensive.
Just a thought for you. Nice job though. |
Re: [TF2] Homing Rocket
it works? it works. so, all good :D
ps: cvar adminOnly added. pps: hmm. gunship? O.o ppps: video added |
Re: [TF2] Homing Rocket
a chance it works on css too?
|
Re: [TF2] Homing Rocket
Quote:
|
All times are GMT -4. The time now is 15:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.