AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] Save Loc (v0.2.7 June-31-2019) (https://forums.alliedmods.net/showthread.php?t=313319)

JoinedSenses 01-05-2019 05:34

[Any] Save Loc (v0.2.7 June-31-2019)
 
.


Description:
Retains position, angle, and velocity data. Useful for practicing surf/rocket jump/bhop/etc
Information is temporary - removed on disconnect, map change, and toggle (if toggle is required by cvar).
Max of 14 saves client. To modify, edit MAX_RECENT_LOCS and recompile. New saves will remove oldest save.

Devs - See include file for plugin integration


Commands:
sm_practice - Enable practice mode - only required if cvar is set
sm_sl - Save loc
sm_tl - Tele loc
sm_ml <optional:targetname> - Loc menu (Allows chosing from one of 10 recent saves)
sm_rl - Remove Loc - Opens menu to select a save to remove

ConVars
sm_saveloc_requireenable "1" // Require the client activate a toggle before using commands?
sm_saveloc_onground "1" // Require the client to be on the ground while enabling practice toggle?
sm_saveloc_restoreontoggle "1" // Save and restore client location on toggle of practice command?
sm_saveloc_allowother "1" // Allows clients to use other players' saves?
sm_saveloc_forceteam "1" // Only allow client to use saves from players on their own team?
sm_saveloc_forceclass "1" // Only allow clients to use saves from players of their own class? (TF2)
sm_saveloc_wipeontoggle "1" // Should the plugin wipe saves on practice toggle?
sm_saveloc_wipeonteam "1" // Should the plugin wipe saves on team change?
sm_saveloc_wipeonclass "1" // Should the plugin wipe saves on class change?
sm_saveloc_customcolor "1" // Should the plugin use custom THEMECOLOR in messages? (TF2)


Example of plugin integration:
Ref 1 - Checking library
Ref 2 - Using a native
Ref 3 - Using a forward


Project here:
Github

Changelog

hmmmmm 01-05-2019 06:36

Re: [Any] Save Loc
 
Should add some forwards/natives so that this can be integrated with all the timer plugins out there.

JoinedSenses 01-05-2019 14:34

Re: [Any] Save Loc
 
Sure, I can do that.

JoinedSenses 01-06-2019 00:54

Re: [Any] Save Loc (v0.2.0 Jan-06-2019)
 
See original post for changelog


All times are GMT -4. The time now is 14:13.

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