PDA

View Full Version : Saber defence - where is it ???


ALIEN_JL
06-24-2002, 02:29 AM
I would like it make that arc where player can
deflect enemy fire and block his saber biger
so where is it in the code ?

NITEMARE
06-24-2002, 03:03 AM
try increasing the SABER_BOX_SIZE in the w_saber.c line 6

bacon
06-24-2002, 04:52 AM
To make the saber bigger find this line
#define SABER_LENGTH_MAX 40
Change the 40 and I think it'll make the saber's bigger.

ALIEN_JL
06-24-2002, 04:55 AM
No... I don't want to make my saber biger, i don't
want to make its bounding box bider...

What i want is that my player can block attacks
from biger arc (also from sides..)

NITEMARE
06-24-2002, 05:17 AM
u mean just projectiles? the boundingbox however increases the chance to block. it is already big now. i uncommented the define debug saber stuff and got a red visualization of the bounding box, it was nearly as big as my torso!

ALIEN_JL
06-24-2002, 06:42 PM
Originally posted by NITEMARE
u mean just projectiles? the boundingbox however increases the chance to block. it is already big now. i uncommented the define debug saber stuff and got a red visualization of the bounding box, it was nearly as big as my torso!

Well i have been under impression that this bounding
box is the thing which hit things when you slash with
your saber (it doesn't have anything to do
with blocking...)

If i member right that bounding box was normally 16
and i have changed it to 4. Result was that blocking
was like before but now that saber seems to really
need to touch things in order to make damage...

---------------------------------------------------------------------

Anyway even if that bounding box is used in blocking
it still doesn't have effect on that thing what i want
to change

If i am right normally player can block attacks from
little bit over 90 degrees cone from front of him

But i want that he can block attacks from at least
180 degrees area (so also from sides and maybe
even from behind...)

NITEMARE
06-26-2002, 02:38 PM
hmm i changed it to 30 once and was not able to damage the bot from far. but that was mabe becuase the blocking was everywhere heh...