This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[CS:S][First Plugin] Sm_Detect (Distance & Angle Detector)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Ph0X
Member
Join Date: Jan 2006
Location: Canada, Montreal
Plugin ID:
829
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 04-05-2009 , 04:51   [CS:S][First Plugin] Sm_Detect (Distance & Angle Detector)
    Reply With Quote #1

    Distance & Angle Detector
    Version 1.0.0.0
    by Ph0X

    Introduction:
    This is my first plugin ever. It finds and displays the distance between you and the target. It also finds how many degree to the left or to the right the target is and shows it with an arrow.
    I don't really see the utility to this, but it's a nice little fun plugin.

    Screenshot: http://img25.**************/img25/787...2009043803.png
    (He is at 34 degree to the left, at 1337 unit from me)

    Commands:
    sm_detect <#userid|name>

    Change Log:
    Key (A added | R removed | C changed | F fixed)


    1.0.0.0 (April 05, 2009)
    A: Initial Release

    Credits:
    DaFox
    #sourcemod
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_detector.sp - 553 views - 3.0 KB)
    __________________
    [img]http://img142.**************/img142/852/legwarmerbedtimesig.png[/img]

    Last edited by Ph0X; 04-05-2009 at 05:26.
    Ph0X is offline
    Send a message via AIM to Ph0X Send a message via MSN to Ph0X
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 04-05-2009 , 06:10   Re: [CS:S][First Plugin] Sm_Detect (Distance & Angle Detector)
    Reply With Quote #2

    Nice.
    Just one question doest it show the info too if you cant see the player?
    PStar is offline
    Ph0X
    Member
    Join Date: Jan 2006
    Location: Canada, Montreal
    Old 04-05-2009 , 06:19   Re: [CS:S][First Plugin] Sm_Detect (Distance & Angle Detector)
    Reply With Quote #3

    It shows at all time, which kinda makes it like a cheat command.
    __________________
    [img]http://img142.**************/img142/852/legwarmerbedtimesig.png[/img]
    Ph0X is offline
    Send a message via AIM to Ph0X Send a message via MSN to Ph0X
    jackennils
    New Member
    Join Date: Mar 2009
    Old 04-05-2009 , 08:57   Re: [CS:S][First Plugin] Sm_Detect (Distance & Angle Detector)
    Reply With Quote #4

    Nice idea, good for custom maps.
    But can you display the info on the top of the screen?
    jackennils is offline
    Ph0X
    Member
    Join Date: Jan 2006
    Location: Canada, Montreal
    Old 04-05-2009 , 14:59   Re: [CS:S][First Plugin] Sm_Detect (Distance & Angle Detector)
    Reply With Quote #5

    Yea I had alot of trouble figuring out how the HUD in source worked.

    The showhudtext only works in tf2/hl2mp and I didn't find any other way of displaying it than this. The API/Wiki needs a little more documentation :X
    __________________
    [img]http://img142.**************/img142/852/legwarmerbedtimesig.png[/img]
    Ph0X is offline
    Send a message via AIM to Ph0X Send a message via MSN to Ph0X
    nOzE
    Member
    Join Date: Jul 2008
    Old 04-13-2009 , 03:17   Re: [CS:S][First Plugin] Sm_Detect (Distance & Angle Detector)
    Reply With Quote #6

    Nice Idea! Could be useful for custom - maps. Could you make it turn on / off depending on the playercount alive? Say its 1 on 1 (2 on 2) ... and then it shows the information! This could make big custom maps a bit more attractive if there are only a few players on the server!
    __________________
    nOzE is offline
    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 12:23.


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