splewis / csgo-practice-mode

CS:GO Sourcemod plugin for private team/individual practice servers
GNU General Public License v3.0
455 stars 70 forks source link

feat(commands): add individual rethrow commands #260

Closed y0hami closed 1 year ago

y0hami commented 1 year ago

Add individual commands to rethrow specific grenades. Allows you to throw nade combo and then rethrow them without having to save them.

splewis commented 1 year ago

Nice idea. I thought about maybe whether this should be implemented by just iterating over the already in-memory history, but it requires some more code tweaks (storing velocity in a per-client arraylist rather than the g_LastGrenadeVelocity which only has the lastest nade). This is simple enough that this way is fine. Thanks!