hechelion
Member
Hi, I found the next problem and a possible solution:
Openbor versión 6330.
OS: Ubuntu 18.04
When you throw and enemy and him rise with a riseattack, him keep the projectile status, that mean the enemy don't hit players but hit other enemies.
I check in the source code, when a enemies rise (normal rise), the code make a reset for projectile flag, but this flag never reset in a riseattack event.
I add the next line in openbor.c under the function:
"int set_riseattack(entity *iRiseattack, int type, int reset)"
Whit this chante, now when you throw a enemi and him perform a riseattack, now hit the players and not other enemies.
Openbor versión 6330.
OS: Ubuntu 18.04
When you throw and enemy and him rise with a riseattack, him keep the projectile status, that mean the enemy don't hit players but hit other enemies.
I check in the source code, when a enemies rise (normal rise), the code make a reset for projectile flag, but this flag never reset in a riseattack event.
I add the next line in openbor.c under the function:
"int set_riseattack(entity *iRiseattack, int type, int reset)"
Code:
int set_riseattack(entity *iRiseattack, int type, int reset)
...
...
iRiseattack->projectile = 0;
...
Whit this chante, now when you throw a enemi and him perform a riseattack, now hit the players and not other enemies.