-
saveloc plugin (SourceMod)
Hello everyone,
I'm not really sure where to put this so ill put it here. Over the last couple days I set up a basic server to test the maps I was making, and I wanted a save location plugin to help test. After not being satisfied with the plugins I could find online, I wrote my own. I thought that I would share it with you guys just in case anybody wanted it. Its very bare-bones with only two commands: sm_saveloc, and sm_teleport. Right now each client only gets one teleport, but I will probably change that in the future. It probably has bugs but I just wanted to put together something quickly without too much learning. I will include the source in the download, feel free to modify, copy, or use any part of my code elsewhere.
Here is a download, stick it in the sourcemod folder it should work:
https://dl.dropboxusercontent.com/u/...TM_saveloc.rar
-
-
Pretty good lightweight plugin. One issue I found is it doesn't save the z axis view angle, so I fixed it.
https://www.mediafire.com/?dfw2m7r8wg7az0a
To fix this I simply changed line 58 in your script:
Code:
GetClientAbsAngles(client, angData[client]);//save angles
To this:
Code:
GetClientEyeAngles(client, angData[client]);//save angles
-
Nice! Thanks dude. I had noticed that and planned to fix it eventually but it was pretty usable so I just left it. I also have an updated version that will save multiple points and they can be used by any client. The command sm_teleport [#] or sm_tele [#] will teleport the client to the location and remember which location the client last teleported to. Using sm_teleport again will teleport the client to the saved location. I tried to get it close to the plugin on ksf for usability sake.
Here is a dl (with fix from jux): https://dl.dropboxusercontent.com/u/...saveloc-v2.rar
-
Post Thanks / Like - 2 Thanks, 0 Likes, 0 Dislikes
-
Looking for more work done with this plugin! Start looks great! Hmu. eXydos | zskyworld.com is my name on steam
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikes
Levi thanked for this post
-
Connect With Us