PDA

View Full Version : saveloc plugin (SourceMod)



horsefeathers
01-05-2015, 07:49 PM
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/17419604/TM_saveloc.rar

mbsurfer
01-06-2015, 10:49 AM
Put it up on Github!

Juxtapo
02-03-2015, 07:43 AM
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:

GetClientAbsAngles(client, angData[client]);//save angles
To this:

GetClientEyeAngles(client, angData[client]);//save angles

horsefeathers
02-03-2015, 11:50 AM
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/17419604/TM_saveloc-v2.rar

exydosback
01-18-2017, 01:24 PM
Looking for more work done with this plugin! Start looks great! Hmu. eXydos | zskyworld.com is my name on steam

Levi
01-18-2017, 01:49 PM
233