Raised This Month: $ Target: $400
 0% 

[TF2/ANY?]Projectile Camera


Post New Thread Reply   
 
Thread Tools Display Modes
Author
TonyBaretta
Senior Member
Join Date: Mar 2014
Location: nope.avi
Plugin ID:
6428
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    on TF2 is based on scout stunball , but can be used in all sourcegames using any entity
    Old 02-06-2019 , 07:48   [TF2/ANY?]Projectile Camera
    Reply With Quote #1

    [TF2/ANY?]Projectile Camera


    description :

    This plugin tracks the position of an entity owned from the player, pressing RELOAD Button you enable cam view in that point, when you release the button the cam will be destroyed.

    Player Commands:

    !fw Enable Fly view on entity ( just 1 time )
    !camhelp Show help menu.

    CVARS:
    // camera model
    // -
    // Default: "models/props_spytech/security_camera.mdl"
    cam_model "models/props_spytech/security_camera.mdl"

    // hide cam model
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    hide_cam "1"

    // 0 to m_hOwnerEntity, 1 to m_hThrower
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    detect_owner "0"

    // Enable Fly View
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    flyview_enabled "1"

    // projectile type
    // -
    // Default: "tf_projectile_stun_ball"
    proj_type "tf_projectile_stun_ball"

    // spycam_enable?
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    spycam_enable "1"




    Change Logs:

    1.0 initial version
    Attached Files
    File Type: sp Get Plugin or Get Source (spycam_view.sp - 685 views - 10.4 KB)
    __________________

    Last edited by TonyBaretta; 02-06-2019 at 13:24.
    TonyBaretta is offline
    ThatKidWhoGames
    Veteran Member
    Join Date: Jun 2013
    Location: IsValidClient()
    Old 02-06-2019 , 10:42   Re: [TF2/ANY?]Projectile Camera
    Reply With Quote #2

    Cool idea, well done!
    ThatKidWhoGames is offline
    Mr_panica
    Senior Member
    Join Date: Jan 2017
    Location: Russia, Saint-Petersburg
    Old 02-06-2019 , 12:47   Re: [TF2/ANY?]Projectile Camera
    Reply With Quote #3

    You have a small error in the plugin.
    Attached Images
    File Type: jpg 0GUt1Zdeckg.jpg (37.6 KB, 342 views)
    __________________
    Sorry for my English.
    Mr_panica is offline
    TonyBaretta
    Senior Member
    Join Date: Mar 2014
    Location: nope.avi
    Old 02-06-2019 , 13:24   Re: [TF2/ANY?]Projectile Camera
    Reply With Quote #4

    Fixed ty for the report
    __________________
    TonyBaretta is offline
    404UserNotFound
    BANNED
    Join Date: Dec 2011
    Old 02-08-2019 , 04:22   Re: [TF2/ANY?]Projectile Camera
    Reply With Quote #5

    Would it be possible to fix the forward rotation with the baseball? Not sure if this occurs with any other projectiles but fixing the forward/backward angular rotation during flight would be a nice option to have (perhaps a convar to switch the rotation lock on/off?). Love the idea.
    404UserNotFound is offline
    TonyBaretta
    Senior Member
    Join Date: Mar 2014
    Location: nope.avi
    Old 02-10-2019 , 12:52   Re: [TF2/ANY?]Projectile Camera
    Reply With Quote #6

    i have done some test about using client eyes pos but it break the ball speed ( using z eyepos to 0.0) , so idk how fix it, that's why the !fw comand work 1 time only ... if you have in mind how fix it free to help me
    __________________
    TonyBaretta is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 02-10-2019 , 22:52   Re: [TF2/ANY?]Projectile Camera
    Reply With Quote #7

    Sheepdude already made this type of plugin a long time ago. (With TF2 support)
    https://forums.alliedmods.net/showthread.php?p=1863414

    I haven't had the chance to try your version though.
    Sreaper is offline
    TonyBaretta
    Senior Member
    Join Date: Mar 2014
    Location: nope.avi
    Old 02-12-2019 , 05:34   Re: [TF2/ANY?]Projectile Camera
    Reply With Quote #8

    the fly view like Sheepdude plugin is only an option ( is based only on SetClientViewEntity) , my plugin can be used with all the projectile type not only nade , it create an entity called spycam where you can use your client eyes position to spy enemies.
    __________________

    Last edited by TonyBaretta; 02-12-2019 at 06:31.
    TonyBaretta is offline
    crafting
    Senior Member
    Join Date: May 2014
    Location: Somewhere on Earth
    Old 02-13-2019 , 15:39   Re: [TF2/ANY?]Projectile Camera
    Reply With Quote #9

    omg, this is amazing! I did get an error while using....

    L 02/13/2019 - 12: 31:56: [SM] Exception reported: Entity 240 (240) is invalid
    L 02/13/2019 - 12: 31:56: [SM] Blaming: spycam_view.smx
    L 02/13/2019 - 12: 31:56: [SM] Call stack trace:
    L 02/13/2019 - 12: 31:56: [SM] [0] GetEntPropEnt
    L 02/13/2019 - 12: 31:56: [SM] [1] Line 181, /home/forums/content/files/2/4/7/0/7/0/173717.attach::OwnerCheck
    L 02/13/2019 - 12: 31:56: [SM] [2] Line 194, /home/forums/content/files/2/4/7/0/7/0/173717.attach::OnGameFrame

    Additional, can you add another convar, so I can set the class has access to this?

    Last edited by crafting; 02-13-2019 at 15:40.
    crafting is offline
    TonyBaretta
    Senior Member
    Join Date: Mar 2014
    Location: nope.avi
    Old 02-13-2019 , 18:00   Re: [TF2/ANY?]Projectile Camera
    Reply With Quote #10

    // 0 to m_hOwnerEntity, 1 to m_hThrower
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    detect_owner "0"

    this with value to 1 do same error ?
    __________________
    TonyBaretta 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 13:53.


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