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

[CSGO] Simple bullet damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DPT
Member
Join Date: Jun 2011
Plugin ID:
6648
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin will show the damage that your bullets and grenades inflict on the enemy.
    Old 07-15-2019 , 22:17   [CSGO] Simple bullet damage
    Reply With Quote #1

    This plugin will show the damage that your bullets and grenades inflict on the enemy. The white text over the crosshair shows the damage value inflicted by each bullet and/or grenade.

    Very simple and straightforward. No cvars, no settings required.

    Tested and working on CSGO.
    Attached Files
    File Type: sp Get Plugin or Get Source (dpt_bulletdamage.sp - 1157 views - 646 Bytes)
    File Type: smx dpt_bulletdamage.smx (4.0 KB, 463 views)
    DPT is offline
    m22b
    Senior Member
    Join Date: Jul 2013
    Old 07-17-2019 , 19:39   Re: [CSGO] Simple bullet damage
    Reply With Quote #2

    Quote:
    Originally Posted by DPT View Post
    This plugin will show the damage that your bullets and grenades inflict on the enemy. The white text over the crosshair shows the damage value inflicted by each bullet and/or grenade.

    Very simple and straightforward. No cvars, no settings required.

    Tested and working on CSGO.
    Code:
    L 07/18/2019 - 02:34:44: SourceMod error session started
    L 07/18/2019 - 02:34:44: Info (map "de_dust2") (file "errors_20190718.log")
    L 07/18/2019 - 02:34:44: [SM] Exception reported: Invalid client index 0
    L 07/18/2019 - 02:34:44: [SM] Blaming: dpt_bulletdamage.smx
    L 07/18/2019 - 02:34:44: [SM] Call stack trace:
    L 07/18/2019 - 02:34:44: [SM]   [0] ShowHudText
    L 07/18/2019 - 02:34:44: [SM]   [1] Line 30, C:\Users\Ahmed\Desktop\spedit1.2.0.3\sourcepawn\scripts\dpt_bulletdamage.sp::Event_PlayerHurt
    m22b is offline
    DPT
    Member
    Join Date: Jun 2011
    Old 07-17-2019 , 20:02   Re: [CSGO] Simple bullet damage
    Reply With Quote #3

    Quote:
    Originally Posted by m22b View Post
    Code:
    L 07/18/2019 - 02:34:44: SourceMod error session started
    L 07/18/2019 - 02:34:44: Info (map "de_dust2") (file "errors_20190718.log")
    L 07/18/2019 - 02:34:44: [SM] Exception reported: Invalid client index 0
    L 07/18/2019 - 02:34:44: [SM] Blaming: dpt_bulletdamage.smx
    L 07/18/2019 - 02:34:44: [SM] Call stack trace:
    L 07/18/2019 - 02:34:44: [SM]   [0] ShowHudText
    L 07/18/2019 - 02:34:44: [SM]   [1] Line 30, C:\Users\Ahmed\Desktop\spedit1.2.0.3\sourcepawn\scripts\dpt_bulletdamage.sp::Event_PlayerHurt
    m22b,

    1) is your server a listen server?

    2) Does the plugin always show this error, or on specific cases only?

    It could probably happen if the attacker leaves the server while the plugin is trying to show him the damage value, I can fix this but I'd like to know more about the error first.

    Thanks
    DPT is offline
    m22b
    Senior Member
    Join Date: Jul 2013
    Old 07-17-2019 , 20:11   Re: [CSGO] Simple bullet damage
    Reply With Quote #4

    Quote:
    Originally Posted by DPT View Post
    m22b,

    1) is your server a listen server?

    2) Does the plugin always show this error, or on specific cases only?

    It could probably happen if the attacker leaves the server while the plugin is trying to show him the damage value, I can fix this but I'd like to know more about the error first.

    Thanks
    I think you don't add "fake and others" checking client commands on code...

    Trying plugin on my server with bots and humans...

    Code:
    2) Does the plugin always show this error, or on specific cases only?
    idk i see errors i stop and delete plugin .
    m22b is offline
    DPT
    Member
    Join Date: Jun 2011
    Old 07-17-2019 , 20:14   Re: [CSGO] Simple bullet damage
    Reply With Quote #5

    I tested the plugin with bots and it worked without problems. It could either be that you're running a listen server, or the client disconnected while the plugin was showing him the damage value. Even bots have a client id that is > 0, that is not the problem.

    Are running a listen server?

    Last edited by DPT; 07-17-2019 at 20:15.
    DPT is offline
    m22b
    Senior Member
    Join Date: Jul 2013
    Old 07-17-2019 , 20:24   Re: [CSGO] Simple bullet damage
    Reply With Quote #6

    Quote:
    Originally Posted by DPT View Post
    I tested the plugin with bots and it worked without problems. It could either be that you're running a listen server, or the client disconnected while the plugin was showing him the damage value. Even bots have a client id that is > 0, that is not the problem.

    Are running a listen server?
    wtf is "listen"? online ? offline ?

    have not problem with this plugin :

    https://forums.alliedmods.net/showthread.php?p=763425

    mb because of this :

    Code:
    		for (new client = 1; client <= MaxClients; client++)
    		{
    			if (IsClientInGame(client))
    			{
    and blablabla
    Example :
    1. I upload ur plugin
    2. Change map
    3. Some random guy enter on server, we play 2-3 min (with bots cuz bot_quota 4 on 24 slot server)
    4. I leave from server (quit command when i be on t spawn, he can hit me)
    5. I see errors...

    Last edited by m22b; 07-27-2019 at 19:39.
    m22b is offline
    DPT
    Member
    Join Date: Jun 2011
    Old 07-17-2019 , 21:43   Re: [CSGO] Simple bullet damage
    Reply With Quote #7

    This is the source of the problem. This plugin will not work properly with listen servers.
    DPT is offline
    m22b
    Senior Member
    Join Date: Jul 2013
    Old 07-19-2019 , 09:24   Re: [CSGO] Simple bullet damage
    Reply With Quote #8

    Quote:
    Originally Posted by DPT View Post
    This is the source of the problem. This plugin will not work properly with listen servers.
    post glitch plugin who spam full tons of erros good job ).

    Wtf is "listen" server?
    m22b is offline
    DPT
    Member
    Join Date: Jun 2011
    Old 07-19-2019 , 23:12   Re: [CSGO] Simple bullet damage
    Reply With Quote #9

    I asked you if you're running a listen server and you said yep and now you're asking me what's a listen server.
    DPT is offline
    m22b
    Senior Member
    Join Date: Jul 2013
    Old 07-27-2019 , 19:39   Re: [CSGO] Simple bullet damage
    Reply With Quote #10

    Quote:
    Originally Posted by DPT View Post
    I asked you if you're running a listen server and you said yep and now you're asking me what's a listen server.
    Cuz i don't know what you mean "listen"

    listen - it's when peoples run csgo > push cummunity servers > find my server ?

    I never hear what it's listen or not...

    I think problem on the code.... (you don't check in code player alive or not, or it's was bot or not... etc, just check other "damage" plugins and there code, they don't have problems)

    Last edited by m22b; 07-27-2019 at 19:41.
    m22b 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 20:37.


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