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

Delete.


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Plugin ID:
4296
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Remove self damage without breaking knockback.
    Unapprover:
    Reason for Unapproving:
    blanked
    Old 08-04-2014 , 08:05   Delete.
    Reply With Quote #1

    Will be recoded once I find a proper way of doing this.

    Last edited by SM9; 11-10-2014 at 09:19. Reason: To be fixed later.
    SM9 is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 08-04-2014 , 09:55   Re: [ANY] No Fall / Self Damage (Redux)
    Reply With Quote #2

    I haven't looked at other plugins, but don't they just block damage if the damage type is DMG_FALL rather than block all damage?
    __________________
    Not currently working on SourceMod plugin development.
    Powerlord is offline
    SM9
    Veteran Member
    Join Date: Sep 2013
    Location: United Kingdom
    Old 08-04-2014 , 10:22   Re: [ANY] No Fall / Self Damage (Redux)
    Reply With Quote #3

    Quote:
    Originally Posted by Powerlord View Post
    I haven't looked at other plugins, but don't they just block damage if the damage type is DMG_FALL rather than block all damage?
    Maybe, but this plugin is supposed to block ALL self inflicted damage without removing the knockback.

    I am afraid there could be problems if a player is somehow attacking himself at the same time he is attacking another player and vice versa though, Hopefully I can figure that one out.

    Last edited by SM9; 08-04-2014 at 10:26.
    SM9 is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 08-05-2014 , 04:39   Re: [ANY] No Fall / Self Damage (Redux)
    Reply With Quote #4

    What the hell.

    If attacker == 0 && damagetype & dmg_fall || attacker == victim
    Damage = 0.01
    Return plugin_changed

    This is like a 10 line plugin.

    If the damageforce is no good from that, just teleportentity the damageforce vel from otd, and return plugin_handled instead of setting damage and changed.


    Also, replay can't hurt players, mang.
    Isvalidclient is stupid.
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.

    Last edited by friagram; 08-05-2014 at 04:40.
    friagram is offline
    SM9
    Veteran Member
    Join Date: Sep 2013
    Location: United Kingdom
    Old 09-05-2014 , 18:59   Re: [ANY] No Fall / Self Damage (Redux)
    Reply With Quote #5

    Please unapprove, I intend to work on something better in the future and this plugin does not function correctly.

    Last edited by SM9; 09-05-2014 at 18:59.
    SM9 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 13:48.


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