Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
flleeppyy opened this issue Jan 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@flleeppyy
Copy link

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
}
@Phil25 Phil25 added the bug Something isn't working label Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants