RTD icon indicating copy to clipboard operation
RTD copied to clipboard

sm_rtds lists perks out of order after reloading a plugin that adds additional perks

Open flleeppyy opened this issue 2 years ago • 0 comments

I'm making a plugin that adds some additional perks. I've made sure that every perk file has ran RTD2_DisableModulePerks, as well as in the main plugin file. I'm unsure if this is my plugins fault, or if this is RTDs fault, but I thought I'd post here just in case.

Here's what sm_rtds returns after running sm_rcon sm plugins reload chens-rtds

FFD700[RTD] 78 perks found matching given criteria.
0. Godmode
2. Lucky Sandvich
1. Toxic
3. Increased Speed
4. Flying
5. Low Gravity
6. Full Übercharge
7. Invisibility
8. Infinite Cloak
9. Criticals
10. Infinite Ammo
11. Scary Bullets
12. Spawn Sentry
22. Blind
13. Homing Projectiles
23. Strip to Melee
14. Full Rifle Charge
24. Beacon
15. Explode
25. Forced Taunt
16. Snail
26. Monochromia
17. Frozen
27. Earthquake
18. Timebomb
28. Funny Feeling
19. Ignition
29. Bad Sauce
20. Low Health
30. Spawn Dispenser
21. Drugged
31. Infinite Double Jump
32. Powerful Hits
33. Big Head
34. Tiny Mann
56. Spring Shoes
35. Firework
57. Lag
36. Deadly Voice
58. Drug Bullets
37. Strong Gravity
59. Long Melee
38. Eye for an Eye
60. Hat Throw
39. Weakened
61. Madaras Whistle
40. Necro Mash
62. Sickness
41. Extra Ammo
63. Wasted Roll
42. Suffocation
64. Mercs Die Twice
43. Fast Hands
65. Drunk Walk
44. Outline
66. Hell's Reach
45. Vital
67. Cursed Projectiles
46. No Gravity
68. Vampire
47. Team Criticals
69. Bat Swarm
48. Fire Timebomb
70. Pumpkin Trail
49. Fire Breath
71. A Call Beyond
50. Strong Recoil
72. Smite
51. Cursed
73. Overheal Bonus
52. Extra Throwables
74. Reverse Eye for an Eye
53. PowerPlay
75. One Shot
54. Explosive Arrows
76. Deflector
55. Incline Problem
77. My Perk

This is my project structure image

This is the main portion of my plugin

public void OnPluginStart()
{
  if (RTD2_IsRegOpen())
    RegisterPerks();
}

public void OnPluginEnd()
{
  RTD2_DisableModulePerks();
  // ------
  ReverseEyeforanEye_DMP();
  Oneshot_DMP();
  Deflector_DMP();
  SpeedCrouch_DMP();
}

public void RTD2_OnRegOpen()
{
  RegisterPerks();
}

void RegisterPerks()
{
  // Leading comments are IDs
  ReverseEyeforanEye_Init(); // 0
  Oneshot_Init(); // 1
  Deflector_Init(); //2
  SpeedCrouch_Init(); //2
}

flleeppyy avatar Jan 22 '23 03:01 flleeppyy