Raised This Month: $32 Target: $400
 8% 

[REQ][TF2] Homing Projectile


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Research
SourceMod Donor
Join Date: Nov 2011
Old 02-13-2014 , 08:26   [REQ][TF2] Homing Projectile
Reply With Quote #1

I know alliedmodders already have similar plugins
https://forums.alliedmods.net/showthread.php?p=1677173 or
https://forums.alliedmods.net/showthread.php?t=162888
but that plugins dosen't have for one user only.

if someone want use homing rocket, he chat !homing, and he get homing rocket
not all people in server

I try modify cool rocket, homing projectile but all failure
please help




oh
that's not for vip. my server dosen't have vip
I just really don't want see all people use homing rocket

Last edited by Research; 02-13-2014 at 08:26.
Research is offline
Whai
Senior Member
Join Date: Jul 2018
Old 11-14-2018 , 17:17   Re: [REQ][TF2] Homing Projectile
Reply With Quote #2

UPDATED

Damn... As I can see, the user who asked is inactive...

Well, for those people who are looking for the RTD's homing projectiles

Here it is.

Commands :
sm_homingprojectiles - Toggle Homing Projectiles

Usage


ConVars :
  • sm_homingprojectiles_version - Plugin Version (Don't touch it)
  • sm_homingprojectiles_enable - Enable/Disable the plugin (default = "1")
  • sm_homingprojectiles_canseeeveryone - Enable/Disable the projectile able to see invisble/disguised spies (default = "0")

All Credits goes to Phil25 and pheadxdll for their RTD plugin
Attached Files
File Type: sp Get Plugin or Get Source (homingprojectiles.sp - 237 views - 10.3 KB)
__________________

Last edited by Whai; 12-12-2018 at 13:41.
Whai is offline
Whai
Senior Member
Join Date: Jul 2018
Old 12-08-2018 , 12:13   Re: [REQ][TF2] Homing Projectile
Reply With Quote #3

UPDATED

New Release v1.2.0 :

Changelog


Commands :
  • sm_homingprojectiles - Toggle Homing Projectiles
  • sm_homing - Same as above
  • sm_homingarrowhead - Toggle Homing arrow to target head
  • sm_hominghead - Same as above
  • sm_homingrocketfeet - Toggle Homing rocket (including sentryrocket) to target feet
  • sm_homingfeet - Same as above

Usage


ConVars:
  • sm_homingprojectiles_version - The plugin version (don't change it)
  • sm_homingprojectiles_enable - Enable/Disable the plugin Default Value : 1
  • sm_homingprojectiles_canseeeveryone - Homing Projectiles can see invisible/disguised spy ? (0 for no | 1 for yes) Default Value : 0
  • sm_homingprojectiles_mod - Homing Projectiles target mod (look at the end of Note for more information) Default Value : 4
  • sm_homingprojectiles_head - Enable/Disable the command for toggle homing arrow to target head - Default Value : 1
  • sm_homingprojectiles_feet - Same as above but for feet - Default Value : 1

Note :
  • All Commands Access are Slay Flag
  • The method for homing arrow head is shit (I mean, you have 6/10 to headshot your enemy)
  • It good if you tell me what errors you get or some suggestions

  • About sm_homingprojectiles_mod, here is the list :
    • 1 - Projectiles will target the owner
    • 2 - Projectiles will target the real owner (it means if a pyro airblast the projectile, the owner of the projectile is targeted
    • 4 - Projectiles will target enemies
    • 8 - Projectiles will target allies
    • 16 - Projectiles have smooth movement (It's useless Alone. Also, the projectile will lose a little his precision)

    If you want to add more than one mod, just add the value, for example :
    • You want target enemies and have projectiles smooth movement :
      Spoiler
Attached Files
File Type: sp Get Plugin or Get Source (homingprojectiles.sp - 237 views - 23.1 KB)
__________________

Last edited by Whai; 12-25-2018 at 12:13.
Whai is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-08-2018 , 12:36   Re: [REQ][TF2] Homing Projectile
Reply With Quote #4

Quote:
Originally Posted by Whai View Post
New Release v1.0.1 :

Changelog


Commands :
  • sm_homingprojectiles - Toggle Homing Projectiles
  • sm_homing - Same as above
  • sm_homingarrowhead - Toggle Homing arrow to target head
  • sm_hominghead - Same as above
  • sm_homingrocketfeet - Toggle Homing rocket (including sentryrocket) to target feet
  • sm_homingfeet - Same as above

Usage


ConVars:
  • sm_homingprojectiles_version - The plugin version (don't change it)
  • sm_homingprojectiles_enable - Enable/Disable the plugin Default Value : 1
  • sm_homingprojectiles_canseeeveryone - Homing Projectiles can see invisible/disguised spy ? (0 for no | 1 for yes) Default Value : 0
  • sm_homingprojectiles_mod - Homing Projectiles target mod (look at the end of Note for more information) Default Value : 4
  • sm_homingprojectiles_head - Enable/Disable the command for toggle homing arrow to target head - Default Value : 1
  • sm_homingprojectiles_feet - Same as above but for feet - Default Value : 1

Note :
  • All Commands Access are Slay Flag
  • The method for homing arrow head is shit (I mean, you have 6/10 to headshot your enemy)
  • It good if you tell me what errors you get or some suggestions

  • About sm_homingprojectiles_mod, here is the list :
    • 1 - Projectiles will target the owner
    • 2 - Projectiles will target the real owner (it means if a pyro airblast the projectile, the owner of the projectile is targeted
    • 4 - Projectiles will target enemies
    • 8 - Projectiles will target allies
    • 16 - Projectiles have smooth movement (It's useless Alone. Also, the projectile will lose a little his precision)

    If you want to add more than one mod, just add the value, for example :
    • You want target enemies and have projectiles smooth movement :
      Spoiler
Besides necro and your code having a couple issues, I find it funny that you did everything else but what OP asked for which was for all players to have access to homing projectiles automatically.
Drixevel is offline
Whai
Senior Member
Join Date: Jul 2018
Old 12-08-2018 , 12:55   Re: [REQ][TF2] Homing Projectile
Reply With Quote #5

Quote:
Originally Posted by Drixevel View Post
[...]but what OP asked for which was for all players to have access to homing projectiles automatically.
Excuse me for being dumb but who is "OP" ? if you mean Research, he said :
Quote:
Originally Posted by Research View Post
[...]
but that plugins dosen't have for one user only.

if someone want use homing rocket, he chat !homing, and he get homing rocket
not all people in server
[...]
I just really don't want see all people use homing rocket
So I think I did good or I misunderstood...


Quote:
Originally Posted by Drixevel View Post
Besides necro and your code having a couple issues
Where are issues ? I'll fix them.
__________________

Last edited by Whai; 12-08-2018 at 12:59.
Whai is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-08-2018 , 15:57   Re: [REQ][TF2] Homing Projectile
Reply With Quote #6

Quote:
Originally Posted by Whai View Post
Excuse me for being dumb but who is "OP" ? if you mean Research, he said :

So I think I did good or I misunderstood...



Where are issues ? I'll fix them.
Add a convar to the plugin to make it so every player has it on by default and that'll nullify my comment.
Drixevel is offline
Whai
Senior Member
Join Date: Jul 2018
Old 12-08-2018 , 16:49   Re: [REQ][TF2] Homing Projectile
Reply With Quote #7

Quote:
Originally Posted by Drixevel View Post
Add a convar to the plugin to make it so every player has it on by default and that'll nullify my comment.
Ok I'll make it.

For the ConVar, you want everyone have homing projectiles, but do you want also have Homing "Headshot" Arrow ? (in the same ConVar)
__________________
Whai is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-08-2018 , 16:58   Re: [REQ][TF2] Homing Projectile
Reply With Quote #8

Updated.
Attached Files
File Type: sp Get Plugin or Get Source (homingprojectiles.sp - 207 views - 23.5 KB)

Last edited by Drixevel; 12-08-2018 at 17:47.
Drixevel is offline
Whai
Senior Member
Join Date: Jul 2018
Old 12-08-2018 , 17:18   Re: [REQ][TF2] Homing Projectile
Reply With Quote #9

I think there is an error in your script code, for example :

The ConVar is disabled, a player is on the server, if the ConVar change to be enabled, the player will not get Homing Projectiles because the value "bHasHomingProjectiles[iClient]" didn't changed

Here is my version. Thanks for this suggestion.

[EDIT] the ConVar name is :

sm_homingprojectiles_all - Homing Projectiles for everyone Default value : 0
Attached Files
File Type: sp Get Plugin or Get Source (homingprojectiles.sp - 201 views - 23.6 KB)
__________________

Last edited by Whai; 12-10-2018 at 10:11.
Whai is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 12-08-2018 , 17:31   Re: [REQ][TF2] Homing Projectile
Reply With Quote #10

Quote:
Originally Posted by Whai View Post
I think there is an error in your script code, for example :

The ConVar is disabled, a player is on the server, if the ConVar change to be enabled, the player will not get Homing Projectiles because the value "bHasHomingProjectiles[iClient]" didn't changed

Here is my version. Thanks for this suggestion.
0 to default because not every server operator will want that on constantly.
Drixevel is offline
Reply


Thread Tools
Display Modes

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 07:09.


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