2 c4 at roundstart
i had a problem with c4 detection at round start to i tried to fix it. anyway
i need to save the c4 to a global varible at the roundstart event. The problem is at the round start its detect 2 weapon_c4 and 0.1 its detect only 1 ( only when mp_freezetime 0), when mp_freezetime is bigger then 0 then there is no problem with the c4 Code:
new ent, count |
Re: 2 c4 at roundstart
Quote:
PHP Code:
|
Re: 2 c4 at roundstart
Only 1 of the 2 c4 should have a player as owner (if pev_owner doesn't work, try m_pPlayer offset).
@Doc-Holiday Player spawn is called many times, and it's too early to detect c4 ( c4 is given the same frame but after spawn, so, index you get is old c4, by chance new c4 had same index but it is not sure. Code:
void CHalfLifeMultiplay::RestartRound() |
Re: 2 c4 at roundstart
i will check owner, i'm not very familiar with offset. but what does the mp_freezetime has to do with it?
|
Re: 2 c4 at roundstart
PHP Code:
|
Re: 2 c4 at roundstart
Quote:
If( pev(iC4, pev_flags) & FL_KILLME ) should do the trick as well. |
| All times are GMT -4. The time now is 03:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.