Raised This Month: $ Target: $400
 0% 

Diamondback Rockets


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Matanel42
Junior Member
Join Date: Dec 2022
Old 12-16-2022 , 06:54   Diamondback Rockets
Reply With Quote #1

I am searching for this plugin that when you fire the Diamondback (Spy's revolver) it will fire a rocket. Like in FF2
Matanel42 is offline
Naydef
Senior Member
Join Date: Dec 2015
Location: Doom Town, Nevada
Old 12-16-2022 , 17:08   Re: Diamondback Rockets
Reply With Quote #2

Normally in FF2 Diamondback doesn't shoot rocket. Probably you joined specific server with custom weapon modifications.

Anyway, what you need to do is to set attribute 280 (override projectile type) to 2 (which matches rocket projectiles).
__________________
My plugins:
*None for now*


Steam:
naydef
Naydef is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 12-17-2022 , 15:11   Re: Diamondback Rockets
Reply With Quote #3

I made this plugin for you. It will do what you asked for.

Every time a human player spawns or touches a locker the plugin will check to see if the player is a Spy who has a Diamondback equipped. If so, it turns their bullets into rockets.

The plugin checks to see if the player is a Spy who isn't a BOT who has item in slot 0 with item index 525 which is Diamondback. If so, the plugin adds attribute 280 (override projectile type) to the weapon which makes it shoot rockets. Unfortunately it doesn't change the damage amount from a bullet to a rocket. So to compensate for that the plugin triples the damage amount of the weapon by applying a 300% damage modifier to the diamondback (using attribute 2 - damage bonus). Any time the player spawns or touches a locker this check is performed.

I made this post very wordy in the event you actually wanted to learn what the attached code is doing.

Note: This plugin requires TF2Attributes. Here's a link: https://forums.alliedmods.net/showthread.php?t=210221
Attached Files
File Type: sp Get Plugin or Get Source (diamondback.sp - 40 views - 1.4 KB)
File Type: smx diamondback.smx (4.2 KB, 40 views)
PC Gamer is offline
Matanel42
Junior Member
Join Date: Dec 2022
Old 12-19-2022 , 03:41   Re: Diamondback Rockets
Reply With Quote #4

Wow, never seen someone made a plugin for me, thank you! and it works.

But, can you add a sm_command so it will disable the plugin incase?
Matanel42 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 12-20-2022 , 20:38   Re: Diamondback Rockets
Reply With Quote #5

The attached plugin should do what you want. If not then let me know.

Note: This plugin requires TF2Attributes. Here's a link: https://forums.alliedmods.net/showthread.php?t=210221

Console Variables:
sm_diamondback_allplayers_enabled : Will show you if plugin is enabled or disabled
sm_diamondback_allplayers_enabled 0 : (default) Disables plugin
sm_diamondback_allplayers_enabled 1 : Enables plugin for all Human players

Admin Commands:
sm_dbrocketson : Gives YOU Diamondback Rockets
sm_dbrocketsoff : Removes YOUR Diamondback Rockets
sm_dbrocketson <target> : Gives target player(s) Diamondback Rockets
sm_dbrocktsoff <target> : Removes Diamondback Rockets from target player(s)

Command Examples:
sm_dbrocketson steve : Gives player named Steve Diamondback Rockets
sm_dbrocketson @red : Gives all human players on RED team Diamondback Rockets
Attached Files
File Type: sp Get Plugin or Get Source (diamondback.sp - 40 views - 6.7 KB)
File Type: smx diamondback.smx (6.8 KB, 35 views)

Last edited by PC Gamer; 12-21-2022 at 05:49.
PC Gamer is offline
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 06:44.


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