Raised This Month: $32 Target: $400
 8% 

[ANY] Point_viewcontrol fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Plugin ID:
3462
Plugin Version:
1.0.2
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    24 
    Plugin Description:
    Fixes point_viewcontrol entities making players' views stuck.
    Old 01-11-2013 , 01:31   [ANY] Point_viewcontrol fix
    Reply With Quote #1

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (viewcontrolfix.sp - 1746 views - 1.2 KB)
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)

    Last edited by MasterOfTheXP; 01-17-2013 at 09:57.
    MasterOfTheXP is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 01-11-2013 , 15:59   Re: [ANY] Point_viewcontrol fix
    Reply With Quote #2

    Thanks! This is exactly what I was looking for!
    Sreaper is offline
    Nano2e
    SourceMod Donor
    Join Date: Apr 2012
    Location: Australia
    Old 01-11-2013 , 21:16   Re: [ANY] Point_viewcontrol fix
    Reply With Quote #3

    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?
    __________________
    Veni Vidi Vici
    Nano2e is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 01-11-2013 , 21:23   Re: [ANY] Point_viewcontrol fix
    Reply With Quote #4

    Quote:
    Originally Posted by Nano2e View Post
    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.

    Last edited by Sreaper; 01-11-2013 at 21:24.
    Sreaper is offline
    Nano2e
    SourceMod Donor
    Join Date: Apr 2012
    Location: Australia
    Old 01-11-2013 , 21:29   Re: [ANY] Point_viewcontrol fix
    Reply With Quote #5

    ah i see ty for that
    __________________
    Veni Vidi Vici
    Nano2e is offline
    Doktor Haus
    Junior Member
    Join Date: Jun 2011
    Old 01-15-2013 , 01:07   Re: [ANY] Point_viewcontrol fix
    Reply With Quote #6

    Very useful for L4D/L4D2 campaigns. Thanks.
    __________________
    Saucemod
    Doktor Haus is offline
    krispx
    Senior Member
    Join Date: Jul 2010
    Old 01-16-2013 , 08:06   Re: [ANY] Point_viewcontrol fix
    Reply With Quote #7

    Quote:
    Originally Posted by Doktor Haus View Post
    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()

    Last edited by krispx; 01-16-2013 at 08:08.
    krispx is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 01-16-2013 , 08:11   Re: [ANY] Point_viewcontrol fix
    Reply With Quote #8

    Quote:
    Originally Posted by krispx View Post
    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (viewcontrolfix.sp - 1078 views - 1.2 KB)
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)

    Last edited by MasterOfTheXP; 01-16-2013 at 08:12. Reason: I can grammer to
    MasterOfTheXP is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 01-17-2013 , 09:53   Re: [ANY] Point_viewcontrol fix
    Reply With Quote #9

    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)
    eric0279 is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 01-17-2013 , 09:59   Re: [ANY] Point_viewcontrol fix
    Reply With Quote #10

    Quote:
    Originally Posted by eric0279 View Post
    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!

    Fixed.
    Attached Files
    File Type: sp Get Plugin or Get Source (viewcontrolfix.sp - 1332 views - 1.2 KB)
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP is offline
    Reply


    Thread Tools
    Display Modes

    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 02:41.


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