no message
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@821 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -496,7 +496,8 @@ void raydamage(vec &from, vec &to, playerent *d)
|
||||
else if((o = intersectclosest(from, to, i, d)))
|
||||
{
|
||||
playerent head = *o; // check headshot
|
||||
head.eyeheight = head.aboveeye/3;
|
||||
head.eyeheight = head.aboveeye/4;
|
||||
head.radius = 2;
|
||||
if(d->gunselect == GUN_SNIPER && intersect(&head, from, to)) gdam = guns[d->gunselect].damage * 3;
|
||||
|
||||
hitpush(i, gdam, o, d, from, to);
|
||||
|
||||
Reference in New Issue
Block a user