AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Point_viewcontrol fix (https://forums.alliedmods.net/showthread.php?t=205475)

MasterOfTheXP 01-11-2013 01:31

[ANY] Point_viewcontrol fix
 
1 Attachment(s)
If a player uses a point_viewcontrol and dies before un-using it (to leave it) they will be stuck viewing it until they un-use it manually. This makes them leave the viewcontrol automatically when they die or respawn.

As for what else it does: nothing. A decent number of maps have point_viewcontrol(s) though, so this could come in handy if you [want to] run them. If you don't run maps with point_viewcontrol entities (e.g. all stock maps) don't run this plugin, cause it won't do anything in that case.

Tested on Team Fortress 2 but should work on every game.

1.0.1 (Jan 16 2012) Now checks that the client is valid before checking their view entity.
1.0.2 (Jan 17 2012) Whoops, it still checked entity 0

Sreaper 01-11-2013 15:59

Re: [ANY] Point_viewcontrol fix
 
Thanks! This is exactly what I was looking for!

Nano2e 01-11-2013 21:16

Re: [ANY] Point_viewcontrol fix
 
So would this the problem I have encountered in comp TF2, when you die and you have team mates alive but you cant spectate them since you are stuck in the spot where died?

Sreaper 01-11-2013 21:23

Re: [ANY] Point_viewcontrol fix
 
Quote:

Originally Posted by Nano2e (Post 1871862)
So would this the problem I have encountered in comp TF2, when you die and you have team mates alive but you cant spectate them since you are stuck in the spot where died?

No. Some maps have buttons that when pressed, adjust your player's view so you are looking through the lens of a camera sort of speak.

When players died while viewing said camera, they would still be looking at it even after respawning. This plugin corrects that bug.

Nano2e 01-11-2013 21:29

Re: [ANY] Point_viewcontrol fix
 
ah i see ty for that

Doktor Haus 01-15-2013 01:07

Re: [ANY] Point_viewcontrol fix
 
Very useful for L4D/L4D2 campaigns. Thanks.

krispx 01-16-2013 08:06

Re: [ANY] Point_viewcontrol fix
 
Quote:

Originally Posted by Doktor Haus (Post 1873719)
Very useful for L4D/L4D2 campaigns. Thanks.

Hi, logs report from L4D2:

Code:

L 01/16/2013 - 07:00:03: [SM] Native "GetEntPropEnt" reported: Property "m_hViewEntity" not found (entity 0/worldspawn)
L 01/16/2013 - 07:00:03: [SM] Displaying call stack trace for plugin "viewcontrolfix.smx":
L 01/16/2013 - 07:00:03: [SM]  [0]  Line 25, /home/groups/alliedmodders/forums/files/1/5/2/1/5/0/114379.attach::Event_Death()


MasterOfTheXP 01-16-2013 08:11

Re: [ANY] Point_viewcontrol fix
 
1 Attachment(s)
Quote:

Originally Posted by krispx (Post 1874359)
Code:

L 01/16/2013 - 07:00:03: [SM] Native "GetEntPropEnt" reported: Property "m_hViewEntity" not found (entity 0/worldspawn)
L 01/16/2013 - 07:00:03: [SM] Displaying call stack trace for plugin "viewcontrolfix.smx":
L 01/16/2013 - 07:00:03: [SM]  [0]  Line 25, /home/groups/alliedmodders/forums/files/1/5/2/1/5/0/114379.attach::Event_Death()


Er...wat. player_death (or player_spawn) apparently triggered for the world (0). I don't know L4D very well, so not sure why that happened.

Either way, it should be fixed now.

eric0279 01-17-2013 09:53

Re: [ANY] Point_viewcontrol fix
 
Quote:

L 01/17/2013 - 13:57:24: [SM] Displaying call stack trace for plugin "viewcontrolfix.smx":
L 01/17/2013 - 13:57:24: [SM] [0] Line 26, F:\SRCDS\l4d2\left4dead2\left4dead2\addons\so urcemod\scripting\viewcontrolfix.sp::Event_De ath()
L 01/17/2013 - 13:57:28: [SM] Native "GetEntPropEnt" reported: Property "m_hViewEntity" not found (entity 0/worldspawn)

MasterOfTheXP 01-17-2013 09:59

Re: [ANY] Point_viewcontrol fix
 
1 Attachment(s)
Quote:

Originally Posted by eric0279 (Post 1874977)
L 01/17/2013 - 13:57:24: [SM] Displaying call stack trace for plugin "viewcontrolfix.smx":
L 01/17/2013 - 13:57:24: [SM] [0] Line 26, F:\SRCDS\l4d2\left4dead2\left4dead2\addons\so urcemod\scripting\viewcontrolfix.sp::Event_De ath()
L 01/17/2013 - 13:57:28: [SM] Native "GetEntPropEnt" reported: Property "m_hViewEntity" not found (entity 0/worldspawn

WHAT??? THAT'S IMPOSSIBLE! HOW D--oh wait, I put < 0 instead of <= 0. Silly me! :3

Fixed.


All times are GMT -4. The time now is 16:22.

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