Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C4 Owner Bug #13

Open
Maxi605 opened this issue Jun 29, 2018 · 6 comments
Open

C4 Owner Bug #13

Maxi605 opened this issue Jun 29, 2018 · 6 comments

Comments

@Maxi605
Copy link

Maxi605 commented Jun 29, 2018

There's a bug with the C4 when somebody else planted a C4 while you change your C4 Timer (I THINK IT IS LIKE THIS, MAYBE NOT) he's C4 is 'yours'.

Logs:

[LOG] 06/28/2018 - 19:494: [ITEM ] --- Player La Rana Super Manca xD! bought item Bomba C4 with ID 0
[LOG] 06/28/2018 - 19:49:44: [KILL ] --- [Inocente] Luzbelito;) [AF] was killed by [Traidor] Rivotril (V23B) with xm1014
[LOG] 06/28/2018 - 19:49:44: [DAMAGE ] --- [Traidor] Rivotril (V23B) attacked [Inocente] Luzbelito;) [AF] with 127 damage
[LOG] 06/28/2018 - 19:49:49: [ITEM ] --- Player Rivotril (V23B) bought item Bomba C4 with ID 0
[LOG] 06/28/2018 - 19:49:49: [MISC ] --- Dead body for Luzbelito;) [AF] was created, ent: 155
[LOG] 06/28/2018 - 19:49:51: [ITEM ] --- Rivotril (V23B) planted the C4
[LOG] 06/28/2018 - 19:49:54: [ITEM ] --- Rivotril (V23B) planted the C4

@GuskiS
Copy link
Owner

GuskiS commented Aug 4, 2018

But were there 2 bombs planted?

@Maxi605
Copy link
Author

Maxi605 commented Aug 7, 2018

No, i planted a C4 at the same exact time another player did, so, it cosidered that both C4's are mine

@Maxi605
Copy link
Author

Maxi605 commented Aug 8, 2018

The bug happen again,
This is the entire round, as you can see two different players bought a C4 but only one of them planted 2 C4's (When he never bought 2)

The log show really bad, my bad, here's the log itself
TTT20180807.log

@GuskiS
Copy link
Owner

GuskiS commented Aug 8, 2018

Hmm. It is shame that it doesn't show the second C4 exploding - that would allow us to speculate if owner is truly wrong or just the logging part is incorrect.

Basicly, owner would receive karma for the bombing. If all karma would go to 1 person, then it is bug with the owner, however, if the karma is given to both, then it is something with logging.

@Maxi605
Copy link
Author

Maxi605 commented Aug 8, 2018

Ingame shows 2 C4's loading to explode by the same exact owner.

@GuskiS
Copy link
Owner

GuskiS commented Aug 8, 2018


on this line add:

log_amx("C4 bomb_planted: %d == %d == %d == %d", c4, id, entity_get_int(c4, EV_INT_iuser1), entity_get_edict(c4, EV_ENT_owner));

ExecuteForward(g_pBombStatusForward, ret, id, BS_PLANTED, c4);

before this line, add:

log_amx("C4 set_c4_info: %d == %d == %d == %d", c4, id, entity_get_int(c4, EV_INT_iuser1), entity_get_edict(c4, EV_ENT_owner));

and let me know those when this issue happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants