Raised This Month: $51 Target: $400
 12% 

Third Person(and others) Viewmode


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 07-09-2006 , 17:38   Third Person(and others) Viewmode
Reply With Quote #1

This plugin allows the players to change their viewmode to thirdperson, if the admin allows it.

Flag "n" is needed for admins that wish to change viewmodes if the players are not allowed.

Commands:
Code:
amx_cvar amx_viewmode 1			//	enables public viewmode, 0 disables.
					//	the same can be done with the other CVARS
Cvars:
Code:
amx_viewmode 1				//	1 enables public viewmode, 0 disables
amx_viewmode_allowrnd 1			//	if 0, nobody can randomly choose a viewmode
amx_viewmode_force_thirdperson 0	//	if 1, will force thirdperson view
amx_viewmode_force_upleft 0		//	if 1, will force upleft view
amx_viewmode_force_topdown 0		//	if 1, will force topdown view
Player Commands:
Code:
say /firstperson
say /thirdperson
say /randomview
IMPORTANT: Make sure that the model included is saved into the models folder! It sounds stupid but you need it!

UPDATE: Version 2 released!

Viewmodes can now be forced on players!

Players can say all of the following::
  • /firstperson - Sets normal mode
  • /thirdperson - Sets 3rd person mode
  • /randomview - Chooses a random mode (4 different modes including normal)
The following CVARS may be used:
  • amx_viewmode 1 // if 0, plugin is only available to admins
  • amx_viewmode_allowrnd 1 // if 0, nobody can randomly choose a viewmode
Force cvars:
  • amx_viewmode_force_thirdperson 0 // if 1, will force thirdperson view
  • amx_viewmode_force_upleft 0 // if 1, will force upleft view
  • amx_viewmode_force_topdown 0 // if 1, will force topdown view

* IMPORTANT NOTE * - Due to the method used to manipulate the users view, this plugin may cause lag in some cases. This is very rare, however if you install this plugin and find that your server is lagging, try removing the plugin and see if that was the cause.

* IMPORTANT NOTE * Number 2 - Beta version of viewmode version 3 has been released, the only difference is this:

Cvars:
Code:
amx_viewmode 1			//	1 enables public viewmode, 0 disables
amx_viewmode_allowrnd 1		//	if 0, nobody can randomly choose a viewmode
amx_viewmode_force 0		//	if 1, will force thirdperson view
amx_viewmode_force 0		//	if 2, will force upleft view
amx_viewmode_force 0		//	if 3, will force topdown view
I am unable to test the new version, but please test it for me and give me feedback, so that I can fix it
Attached Files
File Type: rar models.rar (4.7 KB, 3886 views)
File Type: sma Get Plugin or Get Source (viewmode_v2.sma - 4183 views - 3.0 KB)

Last edited by Throstur; 09-17-2008 at 14:20. Reason: Re-uploaded both files after some minor readability fixes (nothing will change in-game)
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
happycappy
Junior Member
Join Date: May 2006
Location: NL
Old 07-09-2006 , 19:21   Re: Third Person Viewmode
Reply With Quote #2

I thought third person on counter-strike is illegal and can be considered as hacking.
__________________
7331
happycappy is offline
godlike
Senior Member
Join Date: Apr 2005
Old 07-09-2006 , 19:48   Re: Third Person Viewmode
Reply With Quote #3

I tought this already exist.
And i dont think this hacking the only thing you do is changing your view
its even harder to aim at someone
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-09-2006 , 21:33   Re: Third Person Viewmode
Reply With Quote #4

Quote:
Originally Posted by happycappy
I thought third person on counter-strike is illegal and can be considered as hacking.
This is server-side.

At first I thought it set everyone's camera angle to third-person when the cvar was set to 1

Also, this plugin doesn't even compile. Moving to unapproved for now, then trashing if it's not fixed soon.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 07-10-2006 , 05:38   Re: Third Person Viewmode (fixed)
Reply With Quote #5

It's fixed.

As much as these exist already, people have had problems with it, so this one should be easier for people to use.
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
NemesisDelta
Senior Member
Join Date: Jul 2006
Location: Germany/Hessen/Kassel
Old 07-11-2006 , 18:54  
Reply With Quote #6

good work...exactly what i was looking for...

BUT 2 other Questions...

1. Could y disable the Transparence for the Models

2. Could y add the upside view like XunTric does for his Menue PLUGIN




>upsideview< THE BEST VIEW ...but the aim is a little bit lowerleft than

1.http://ex0r.com/filebase/Files/Nemes...cs/image11.jpg
2.http://ex0r.com/filebase/Files/Nemes...cs/image12.jpg
3.http://ex0r.com/filebase/Files/Nemes...cs/image13.jpg
NemesisDelta is offline
Send a message via ICQ to NemesisDelta
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 07-11-2006 , 22:19   Re: Third Person(and others) Viewmode
Reply With Quote #7

Haven't disabled transparency, will try later (remind me if I havent tried after a week)
BUT I have added force viewmode options
__________________
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
NemesisDelta
Senior Member
Join Date: Jul 2006
Location: Germany/Hessen/Kassel
Old 07-12-2006 , 10:22   Re: Third Person(and others) Viewmode
Reply With Quote #8

ok that would be GREAT...i dont forget it...no worry
NemesisDelta is offline
Send a message via ICQ to NemesisDelta
Jak
BANNED
Join Date: Feb 2006
Old 07-12-2006 , 10:33   Re: Third Person(and others) Viewmode
Reply With Quote #9

I LOVE THIS PLUGIN !


+KARMA!
Jak is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-13-2006 , 10:01   Re: Third Person(and others) Viewmode
Reply With Quote #10

the set_view function causes extreme lag. This function is not recommended to be used in actual gameplay (usually just for plugin testing).
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:34.


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