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

Physics Damage Blocker


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Benjamin1995
SourceMod Donor
Join Date: May 2009
Location: Germany
Plugin ID:
2889
Plugin Version:
1.9
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    this plugin blocks physics damage and should work for any game
    Unapprover:
    Reason for Unapproving:
    Inactive for 6 months after an approver left feedback
    Old 04-07-2012 , 07:17   Physics Damage Blocker
    Reply With Quote #1

    Hello Players,

    i made a simple Phyiscs Damage Block plugin for a friend and now i'm also going to release it.

    Dependencies:
    SDKHooks

    What it does?
    It blocks physics damage made by props (prop_phyiscs***) for example.


    ~Updated to 1.9
    -> Added func_physbox_multiplayer and func_physbox
    -> Removed Adverts

    Please say what you think about it and if you like it.
    Regards Benni
    Attached Files
    File Type: smx physicsdmgfix.smx (2.8 KB, 196 views)
    File Type: sp Get Plugin or Get Source (physicsdmgfix.sp - 228 views - 1.4 KB)
    __________________

    Last edited by Benjamin1995; 04-10-2012 at 15:59.
    Benjamin1995 is offline
    Send a message via Skype™ to Benjamin1995
    Impact123
    Veteran Member
    Join Date: Oct 2011
    Location: Germany
    Old 04-07-2012 , 14:16   Re: Physics Damage Blocker
    Reply With Quote #2

    Just a few suggestions:
    • Use the const MaxClients instead of GetMaxClients();
    • Do the if(hooksloaded) before checking if a client is valid
    • Avoid adverts like that in plugins, see here for more information
    Also i believe there already is such a plugin out there, but i'm not sure.


    Yours sincerely
    Impact
    __________________

    Last edited by Impact123; 04-07-2012 at 14:17.
    Impact123 is offline
    zrayz
    Junior Member
    Join Date: Nov 2011
    Location: Russia
    Old 04-09-2012 , 11:52   Re: Physics Damage Blocker
    Reply With Quote #3

    Nice plugin.
    Can you add block damage from func_physbox and func_physbox_multiplayer?
    zrayz is offline
    Benjamin1995
    SourceMod Donor
    Join Date: May 2009
    Location: Germany
    Old 04-10-2012 , 15:50   Re: Physics Damage Blocker
    Reply With Quote #4

    Updated, look above for read the changes.
    __________________

    Last edited by Benjamin1995; 04-10-2012 at 15:58.
    Benjamin1995 is offline
    Send a message via Skype™ to Benjamin1995
    Impact123
    Veteran Member
    Join Date: Oct 2011
    Location: Germany
    Old 04-10-2012 , 16:22   Re: Physics Damage Blocker
    Reply With Quote #5

    Your plugin creates errormessages.
    Code:
    L 04/10/2012 - 22:20:23: [SM] Native "IsClientInGame" reported: Client index 13 is invalid
    L 04/10/2012 - 22:20:23: [SM] Displaying call stack trace for plugin "physicsdmgfix.smx":
    L 04/10/2012 - 22:20:23: [SM]   [0]  Line 20, C:\Users\Impact\Downloads\physicsdmgfix.sp::OnPluginStart()
    Use MaxClients instead of MAXPLAYERS.

    Yours sincerely
    Impact
    __________________
    Impact123 is offline
    Benjamin1995
    SourceMod Donor
    Join Date: May 2009
    Location: Germany
    Old 04-12-2012 , 13:39   Re: Physics Damage Blocker
    Reply With Quote #6

    In the new version I use MAXPLAYERS
    __________________
    Benjamin1995 is offline
    Send a message via Skype™ to Benjamin1995
    Starbish
    AlliedModders Donor
    Join Date: Oct 2011
    Location: South Korea
    Old 04-13-2012 , 02:13   Re: Physics Damage Blocker
    Reply With Quote #7

    Quote:
    Originally Posted by Benjamin1995 View Post
    Hello Players,

    i made a simple Phyiscs Damage Block plugin for a friend and now i'm also going to release it.

    Dependencies:
    SDKHooks

    What it does?
    It blocks physics damage made by props (prop_phyiscs***) for example.


    ~Updated to 1.9
    -> Added func_physbox_multiplayer and func_physbox
    -> Removed Adverts

    Please say what you think about it and if you like it.
    Regards Benni
    i have a one question.
    why did you use hooksloaded?
    if you include sdkhooks and no files on the server, it'll automatically unloaded.
    it's just a question. dont mind plz
    __________________
    Starbish is offline
    Benjamin1995
    SourceMod Donor
    Join Date: May 2009
    Location: Germany
    Old 04-13-2012 , 13:08   Re: Physics Damage Blocker
    Reply With Quote #8

    it is true if sdkhooks are running that means if it is on the server you know?

    Regards Benni
    __________________
    Benjamin1995 is offline
    Send a message via Skype™ to Benjamin1995
    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 21:13.


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