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

[TF2] Roll The Dice Revamped (RTD) (v2.5.4, 2 Mar 2024)


Post New Thread Reply   
 
Thread Tools Display Modes
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 03-23-2016 , 05:34   Re: [TF2] Roll The Dice (Revamped)
Reply With Quote #31

The issue with having a crapton of smx files in the plugins folder can be solved by placing related plugins within a subfolder. plugins/rtd/someCustomPerk.smx, for example.

It would probably be best to have each sub-plugin handle its own Updater integration.

If you're concerned about having too many cvars, then you may want to look into supporting loading setting from a saved KeyValues file.
__________________
ddhoward is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 03-26-2016 , 18:50   Re: [TF2] Roll The Dice (Revamped)
Reply With Quote #32

Quote:
Originally Posted by ddhoward View Post
The issue with having a crapton of smx files in the plugins folder can be solved by placing related plugins within a subfolder. plugins/rtd/someCustomPerk.smx, for example.
This still leaves the problem of incoherent perk IDs. I wouldn't mind not having them consistent honestly, but I'm concerned about others who would.

Unless I'll simply leave the current config file as it is and have each server owner fill it up on their own. I can't think of a good idea to solve this at this moment.


New version released:

v0.95:
  • Added ConVar for restricting teams: sm_rtd2_team.
  • More optimized ConVar handling.
  • More optimized perk tags handling.
  • Fixed Full Übercharge ending its effect on the Medic prematurely.
  • Timebomb now ends when any other perk would end, regardless of it not having a timer (sm_removertd works too).
  • Lucky Sandvich now grants a single critical attack.
  • Added "weapons" key to the config file:
    • Used to restrict perks to currently held weapons' classes.
    • Seperated by a comma, spaces are removed.
    • Due to the weapon classes string being long, it checks if the strings contain themself.
    • Example: "weapons" "rocketl" will make the perk only be applicable to players holding a rocket launcher.
    • Currently limits Homing Projectiles.
  • 2 new perks added:
    • No Gravity - Disables (almost) roller's gravity.
    • Team Criticals - Grants Crits to the roller and nearby teammates.

Last edited by Phil25; 03-27-2016 at 07:05.
Phil25 is offline
CrazyGhostRider
Member
Join Date: Apr 2014
Location: Russia
Old 03-28-2016 , 13:23   Re: [TF2] Roll The Dice (Revamped)
Reply With Quote #33

Me and VOLK_RuS added 2 new perk:
1) Invert the movement of selected players
https://forums.alliedmods.net/showthread.php?p=2401008
2) The crits dispenser
https://youtu.be/Q1_kOQULxIo

Last edited by CrazyGhostRider; 03-28-2016 at 13:35.
CrazyGhostRider is offline
MaloModo
Veteran Member
Join Date: Aug 2008
Old 03-28-2016 , 14:38   Re: [TF2] Roll The Dice (Revamped)
Reply With Quote #34

Added ConVar for restricting teams: sm_rtd2_team.

Thx for this. On quick test on FF2 seems to be working well.
MaloModo is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 04-03-2016 , 02:51   Re: [TF2] Roll The Dice (Revamped)
Reply With Quote #35

New version released:

v0.96:
  • More optimized config parsing.
  • Fixed server crash upon editing many perks with custom sounds.
  • Fixed Team Criticals ending its effect when there are two players with that perk, in some situations.
  • Team Criticals's beam is smooth and better looking.
  • More optimized Team Criticals's beam handling.
  • Fixed sm_rtd2_duration ConVar being set to 5 seconds by default.
  • Fixed Flying's incorrect behaviour when the perk ended forcefully and noclip was selected.
  • Updated Timebomb's effects and added some new ones.
  • 2 new perks added:
    • Fire Timebomb - Arms with a timebomb which ignites players upon exploading.
    • Fire Breath - Shoots fireballs upon voicecommands.
Phil25 is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 04-05-2016 , 23:21   Re: [TF2] Roll The Dice (Revamped)
Reply With Quote #36

New version released:

v0.97:
  • More descriptive and straightforward perk disabling feedback.
  • Now throws an error if 2 perks have the same token.
  • Support for adding custom perks via other plugins.
  • Other plugins can now override core perks' functionality.

So, here it is, developers can now add their custom perks to the RTD and handle them via their plugins. Huge thanks to psychonic for references in his psyRTD on how to set this up and pheadxdll who pointed me to that plugin.

The perks had been split into two groups: core and external.

Core perks are the ones in the RTD and their IDs exist in the config file. External perks do not have constant IDs but have them set always after the core perks, they should be addressed by their token, which must unique per perk now.

I will write a full tutorial on how to add custom perks via external plugins later, for now I've set up a small plugin which does the most important work, I'll attach it to this post.

I hope that the tutorial plugin and the new .inc file will suffice for now. I'd really love seeing other plugin developers add their own perks to the plugin, such as an All-Crit plugin adding "No Crits" perk, or a Donate plugin enabling donor effects for a custom time.

My favorite release yet!

EDIT: Tutorial has been written.
Attached Files
File Type: sp Get Plugin or Get Source (rtd2_extperktest.sp - 167 views - 3.6 KB)

Last edited by Phil25; 04-18-2016 at 01:17.
Phil25 is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 04-22-2016 , 09:44   Re: [TF2] Roll The Dice (Revamped)
Reply With Quote #37

New version released:

v0.98:
  • Added description for commands.
  • Changed the default flag for sm_reloadrtd from ROOT to CONFIG.
  • Added Updater support:
    • The plugin can now update automatically adding new perks and features.
    • Added ConVar to whether or not the plugin should be automatically updating: sm_rtd2_autoupdate
    • Added a command for checking for updates: sm_updatertd:
      • Command will work regardless of the sm_rtd2_autoupdate ConVar.
      • The command is on a 1 hour cooldown (limited by Updater).
    • Installing Updater is optional.
  • 6 new perks added:
    • Strong Recoil - It's difficult to aim your weapons whilst firing.
    • Cursed - Inverts movement, borrowed from Curse by Farbror Godis.
    • Extra Throwables - Grants additional throwables, such as Jarates, Milks, Sandman Balls, Sandviches, etc.
    • PowerPlay - Sets PowerPlay on the roller.
    • Explosive Arrows - Huntsman arrows and crossbow bolts explode on touch.
    • Incline Problem - Makes it difficult for the roller to climb stairs and other inclines.
Phil25 is offline
Taco
New Member
Join Date: Apr 2016
Old 04-23-2016 , 19:45   Re: [TF2] Roll The Dice (Revamped)
Reply With Quote #38

Could you add that convar to the dispenser for the number of dispensers allowed to be spawned, as in Phead's plugin? Would be great, and also to have the perks end when the buildings are placed, unless I'm being blind and missing an existing cvar for that.
Taco is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 04-24-2016 , 04:48   Re: [TF2] Roll The Dice (Revamped)
Reply With Quote #39

Quote:
Originally Posted by Taco View Post
Could you add that convar to the dispenser for the number of dispensers allowed to be spawned, as in Phead's plugin? Would be great, and also to have the perks end when the buildings are placed, unless I'm being blind and missing an existing cvar for that.
No problem,
new version released:

v0.99:
  • Fixed not being able to use sm_forcertd when not being in roll yourself.
  • Added RTD2_CanForcePerk & RTD2_CanRemovePerk forwards:
    • You can block perk forcing and removing regarding on the admin, the target and the perk.
    • Return Plugin_Continue to allow, everything else blocks.
  • Added ConVar for automatic plugin reloading when new update is installed: sm_rtd2_reloadupdate:
    • Default setting is 1,
    • if 0, the plugin will not reload itself while a new RTD update is downloaded and installed.
  • Fixed sm_updatertd not working when ConVar sm_rtd2_autoupdate is set to false.
  • Changes to Spawn Sentry & Spawn Dispenser:
    • You can spawn multiple buildings depending on your config (added 3rd option to 'settings'),
    • Perks end when buildings are set to stay and you spawned all of them,
    • Displaying in chat how many buildings you have placed / have left to place (English only).

If you have Updater installed (and v0.98 of RTD), type sm_updatertd to automatically update.

Last edited by Phil25; 04-24-2016 at 06:56.
Phil25 is offline
CrazyGhostRider
Member
Join Date: Apr 2014
Location: Russia
Old 04-25-2016 , 08:03   Re: [TF2] Roll The Dice (Revamped)
Reply With Quote #40

Added Russian language.
Please add in the next update.
Attached Files
File Type: txt rtd2.phrases.txt (9.3 KB, 172 views)
CrazyGhostRider 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 10:54.


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