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

Display previous round information in chat


Post New Thread Reply   
 
Thread Tools Display Modes
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-12-2021 , 15:42   Re: Display previous round information in chat
Reply With Quote #31

What do you mean with an "awp arrow"
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
theuser
Member
Join Date: Jul 2020
Old 08-12-2021 , 16:50   Re: Display previous round information in chat
Reply With Quote #32

Quote:
Originally Posted by Natsheh View Post
What do you mean with an "awp arrow"
bullet of AWP

Last edited by theuser; 08-12-2021 at 16:51.
theuser is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-12-2021 , 20:48   Re: Display previous round information in chat
Reply With Quote #33

Quote:
Originally Posted by theuser View Post
The problem is still visible

"A player's damage is 70 and I shoot him with an awp arrow, 100 damages are printed in chat, while 70 damages should be printed."
Try this

https://forums.alliedmods.net/showpo...8&postcount=22

I understood pev_dmg_take as being the loss in hp, but it is equal to full damage taken, which can exceed health.
__________________
Bugsy is offline
theuser
Member
Join Date: Jul 2020
Old 08-13-2021 , 03:43   Re: Display previous round information in chat
Reply With Quote #34

Yes, the problem is completely solved.
And to fix the last bug (what can we do to calculate the time interval between the end of the round and respawn?)
The round ends and the message is printed
It takes a few seconds to start the next round
If we kill an opponent in the meantime, plugin counts and plus the damage done with the next round damages, and this is not true.

There are two things we can do:
1- In the same way that we delete the data in the array, we delete the data once at the beginning of the round so that if a damage was taken from a player between the end of the round and the beginning of the next round, that data will be deleted.

2- Set the plugin to show the message at the time of respawn and consider the time interval between the end of the round and the beginning of the next round. (It's better)
theuser is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-13-2021 , 09:24   Re: Display previous round information in chat
Reply With Quote #35

Yes, I think the simplest would be to wipe the array clean at round start/end of freeze time.
__________________
Bugsy is offline
theuser
Member
Join Date: Jul 2020
Old 08-13-2021 , 15:31   Re: Display previous round information in chat
Reply With Quote #36

Yes, it is easier, but in the second case, the plugin becomes more complete
theuser is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-13-2021 , 16:48   Re: Display previous round information in chat
Reply With Quote #37

Ok, so do not count damage that occurs during freeze time AND display the message at re-spawn instead of death?
__________________
Bugsy is offline
WATCH_DOGS UNITED
BANNED
Join Date: Nov 2020
Old 08-13-2021 , 20:12   Re: Display previous round information in chat
Reply With Quote #38

Similar thing here:

Our Round Bonus Removers plugins were able to successfully capture the money from the previous round and re-deliver it to players to remove the game bonus for round win / round lose.
WATCH_DOGS UNITED is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-13-2021 , 22:24   Re: Display previous round information in chat
Reply With Quote #39

This code has been updated:

1. No damage during freeze time
2. Damage shown to each player at spawn

https://forums.alliedmods.net/showpo...8&postcount=22
__________________

Last edited by Bugsy; 08-13-2021 at 22:24.
Bugsy is offline
theuser
Member
Join Date: Jul 2020
Old 08-14-2021 , 11:37   Re: Display previous round information in chat
Reply With Quote #40

Quote:
Originally Posted by Bugsy View Post
This code has been updated:

1. No damage during freeze time
2. Damage shown to each player at spawn

https://forums.alliedmods.net/showpo...8&postcount=22
The plugin has a problem and prints the damage incorrectly ! (The previous version (V0.5) worked without any problems)
Please check the code

Last edited by theuser; 08-14-2021 at 11:49.
theuser 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 00:23.


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