TheSil / base_enhanced

sil's base_enhanced server mod
3 stars 4 forks source link

Running over someone in the ATST should count as a kill for the driver #59

Closed deathsythe47 closed 9 years ago

deathsythe47 commented 9 years ago

This is definitely a bug, because with other vehicles (swoop) you can ram somebody and it counts as a kill.

Currently if player A runs over player B, it just says "player B died" and subtracts 1 point from player B.

Instead it should say "player B was killed by player A" and add 1 point to player A.

deathsythe47 commented 9 years ago

Here is fix c7a24ad1d3248c66b95e7ddaac2b00e795ac011f

G_Damage(under, (gentity_t *)ent->m_pVehicle->m_pPilot, (gentity_t *)ent->m_pVehicle->m_pPilot, down, under->r.currentOrigin, 100, 0, MOD_CRUSH);
TheSil commented 9 years ago

Used your approach, just with slight modification. See following commit.