I'm doing a mod which would add a custom difficulty to SP missions. One of the first things I'm doing is killing player when he gets the first shot but it doesn't work at all, when player dies, camera always look at a point instead of enemy so most of the times you have no idea of who have killed you or where the shot came from. This is the code:
Code: Select all
fastDeath()
{
for(;;)
{
self waittill("damage", damage, attacker, direction_vec, point, cause);
self dodamage(self.health, attacker getorigin());
}
}
Is there a way to change weapons damage without editing each weapon file? Any ideas to fix this?