[TF2] Third Person / Clientprefs - (1.3.1) 4/25/2013
2 Attachment(s)
This is a really simple plugin that sets the forced taunt camera to allow players to go into third person. It saves their setting so that it will persist between connects/maps. It also attempts to address an issue where sometimes when you spawn, you will not be able to go into third person without going back into first person - by doing this automatically each time. The command handlers check if you are in first/third person, and omit repeated spam accordingly.
CVARs: sm_tpcookie_version: version number, for tracking (don't change) sm_tpcookie_enabled: (1) - Enable/Disable Plugin [0/1] If you disable the plugin (or unload it), it should force everyone back into first person. Commands: sm_thirdperson or tp: Third Person sm_firstperson or fp: First Person Users should be familiar with these commands from other third person plugins. Code:
2013-1-3 (v1.0.0) Clientprefs Installation: - Put SMX in plugins directory - Optional: add "sm_thirdperson" "SOMEFLAGS" to your overrides file to restrict everyone from using the thirdperson/firstperson commands Plans: - Add commands to force third/first on people for funs. - Add natives for other plugins to send fp/tp commands depending on the client's preferences (like -> go to TP for 10 seconds and back to first, only if you prefer first). - Figure out if there is some way to fix the crosshair from randomly appearing in the middle of the player's body =/ |
Re: [TF2] Third Person / Clientprefs
How about adding a freeze command to encase the player in a block of ice with the models from your FreezeTag plugin?
|
Re: [TF2] Third Person / Clientprefs
Quote:
Also nice work OP. |
Re: [TF2] Third Person / Clientprefs
Quote:
|
Re: [TF2] Third Person / Clientprefs
You should use the SourceMod override system so people don't have to edit the plugin to change the flags.
|
Re: [TF2] Third Person / Clientprefs
Quote:
Added to the note anyway, guess some people don't use the overrides file. I usually just build it into my plugins because it's easier to manage with multiple servers. Edit: Changed to use checkcommandaccess with 1 shared override flag |
Re: [TF2] Third Person / Clientprefs
Quote:
|
Re: [TF2] Third Person / Clientprefs
Quote:
https://forums.alliedmods.net/showpo...4&postcount=36 Code:
sm_freezetag_thirdperson [0]: 0: Do nothing special, 1: Force Third Person when frozen and First person otherwise, 2: Force Third Person when Frozen and Preserve whatever special setting the client had when they died. |
Re: [TF2] Third Person / Clientprefs
I definitely like this. Though I have one request if possible. Sometimes when I drop connection for a few seconds the game will return me to first person, unless I either change class or !fp the !tp back into it. I was wondering if perhaps the plugin can check the player every few minutes if they are in thirdperson and if they aren't, force the command, but only if they had entered thirdperson to begin with. Again I am not sure if that is even possible, just throwing it out there.
Otherwise the plugin has been working nicely, have yet to find any other problems. |
Re: [TF2] Third Person / Clientprefs
Quote:
I have not heard of this issue. Do you start to disconnect and see the connection interrupted message, and then hear the drowning sound before coming back in? Edit - looks like it will spam you with feedback messages if you join the game and use the command without a team//from spectate. I'll just move the notification into an alive check, so people don't have to see that. I know a lot just bind it to their mousewheel or something. I'll also update it to use a checkcommandaccess flag/default later, been busy working on other mods. |
All times are GMT -4. The time now is 01:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.