Moving through Objects..

Posted By: flutschi

Moving through Objects.. - 01/03/09 11:55

Hi there,


Since i have my Project in Lite-C.. i can move through certain things, like my door and stuff..

why is this? do i have to set my doors to something that i cant move throuhg that i dont have to in C-Script?

my doors are not models, there are this map entity files..

thanks for answering smile
Posted By: croman

Re: Moving through Objects.. - 01/03/09 12:10

can i see your c_move function?
Posted By: flutschi

Re: Moving through Objects.. - 01/03/09 12:14

sure thing..

Quote:
action player_move()
{
wait(1);

//That the Model of the Player is invis for the Player..
camera.genius = player;
player = me;

weapon_shoot();

while (player !=NULL)
{
my.move_vec_x = (key_e - key_d)*integer(my.a_rennen_p_speed)*time_step; //vorwaerts, rückwärts
my.move_vec_y = (key_s - key_f)*integer(my.a_strafe_p_speed)*time_step; //strafe links + rechts

player.pan += (-mouse_force.x)*22*time_step;

genickbruch += (mouse_force.y)*11*time_step;

if (key_g)
{
genickbruch = 0;
}

if (genickbruch > 55)
{
genickbruch = 55;
}
else
{
if (genickbruch < -55)
{
genickbruch = -55;
}
}

camera.tilt = 0 + genickbruch;

move_mode = IGNORE_YOU + IGNORE_PASSABLE + IGNORE_PUSH + ACTIVATE_TRIGGER + GLIDE;
ent_move(my.move_vec_x,nullvector);

update_camera();
wait(1);
}
}

Posted By: croman

Re: Moving through Objects.. - 01/03/09 12:22

first of try with c_move function
then try removing ignore_push and be sure that your door ent is not passable.

also you might wanna try creating doors with models, it's easier, at least to me
Posted By: flutschi

Re: Moving through Objects.. - 01/03/09 12:30

i thought about creating them with models, but in all the tuts i've seen (ok, there are just 2 i've seeen :p ) there were made with this WED (Copy & Paste methode)..

thx, i try it.. let u know about it soon
Posted By: croman

Re: Moving through Objects.. - 01/03/09 12:35

those tuts have been created quite a long time ago. but now i think that models are taking the rule.
more and more people are creating levels out of models only, without blocks and map ents. blocks are getting "old" smile but they can serve it's purpose ofc
Posted By: flutschi

Re: Moving through Objects.. - 01/03/09 13:13

yeah, now i never worked with c_move before, can u translate my code to c_move?
Posted By: croman

Re: Moving through Objects.. - 01/03/09 14:07

c_move(my.move_vec_x,nullvector, IGNORE_YOU | IGNORE_PASSABLE | IGNORE_PUSH | ACTIVATE_TRIGGER | GLIDE | USE_BOX);

replace your move_mode and ent_move lines with this upper code and try without ignore_push
Posted By: flutschi

Re: Moving through Objects.. - 01/03/09 15:52

hmm, thx a lot

there is a "me" missing smile

c_move(me,move_vec...); smile


and its still not working smirk

i can move through my door..
Posted By: croman

Re: Moving through Objects.. - 01/03/09 17:15

have you removed the "ignore_push" part
are you sure that your doors are not passable

if that doesnt work you can send me your project folder so i try to fix it
Posted By: flutschi

Re: Moving through Objects.. - 01/03/09 18:08

what u mean with "my door is not passable" ?

i have it like i always had it.. and it wasnt passable before..
Posted By: croman

Re: Moving through Objects.. - 01/03/09 18:38

make sure that door is not passable, just check that
© 2024 lite-C Forums