Bullets

Posted By: Creepinbox

Bullets - 01/28/08 18:59

okay.. well .. I've been posting way to much about these bullets laitly.. but can anyone tell me.. whats the best way for me to make the bullets avoid the player? I can set its speed to 330 and it wont hit me .. but .. i feel that this is to "unstable"..

So what can I do ? I can't get push to work, and im hessitant to use trace.. I want the bullets to ignore the player completely..
Posted By: Scorpion

Re: Bullets - 01/28/08 19:14

you counted all the possibilities you have to do that and there are no real deficits about them.
I guess you are using c_move, so you could set the ignore_you flag of it...and set you to the player.
Posted By: Creepinbox

Re: Bullets - 01/28/08 19:44

Well, how would you do it ? ..
Posted By: Scorpion

Re: Bullets - 01/29/08 14:16

if only the player should be ignored i would use the last mentioned method. c_move with ignore_you set to the player-entity
Posted By: Creepinbox

Re: Bullets - 01/29/08 20:18

yes.. but the player hits the bullets when he moves ..
Posted By: Scorpion

Re: Bullets - 01/29/08 20:48

then also set the bullets push lower than the player (-1) and use ignore_push in the c_move of the player :]
Posted By: Creepinbox

Re: Bullets - 01/29/08 21:34

Well .. I don't get it .. nothing seems to work
Posted By: Scorpion

Re: Bullets - 01/30/08 22:06

in bullet function:

Code:
my.push = -1;
while(1)
{
[...]
you = player;
c_move(me,vector(10*time_step,0,0),ignore_you);
wait(1);
}



in da players action

Code:
while(1)
{
[...]
c_move(me,direction,ignore_push);
wait(1);
}


© 2024 lite-C Forums