|
Moving through Objects..
#244203
01/03/09 11:55
01/03/09 11:55
|
Joined: Nov 2008
Posts: 53 Switzerland (Luzern)
flutschi
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
|
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 smile](/ubb7/images/graemlins/default_dark/smile.gif)
My System: Intel Core 2 Duo CPU P8400 @ 2.26 GHz 4 GB Ram NVIDIA GeForce 9600M GT 32 Bit Windows Vista *********************************** Gamestudio Pro 7.50 / WED V6.875
|
|
|
Re: Moving through Objects..
[Re: flutschi]
#244206
01/03/09 12:10
01/03/09 12:10
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
can i see your c_move function?
Ubi bene, ibi Patria.
|
|
|
Re: Moving through Objects..
[Re: croman]
#244207
01/03/09 12:14
01/03/09 12:14
|
Joined: Nov 2008
Posts: 53 Switzerland (Luzern)
flutschi
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
|
sure thing.. 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); } }
My System: Intel Core 2 Duo CPU P8400 @ 2.26 GHz 4 GB Ram NVIDIA GeForce 9600M GT 32 Bit Windows Vista *********************************** Gamestudio Pro 7.50 / WED V6.875
|
|
|
Re: Moving through Objects..
[Re: flutschi]
#244211
01/03/09 12:22
01/03/09 12:22
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
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
Ubi bene, ibi Patria.
|
|
|
Re: Moving through Objects..
[Re: croman]
#244214
01/03/09 12:30
01/03/09 12:30
|
Joined: Nov 2008
Posts: 53 Switzerland (Luzern)
flutschi
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
|
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
My System: Intel Core 2 Duo CPU P8400 @ 2.26 GHz 4 GB Ram NVIDIA GeForce 9600M GT 32 Bit Windows Vista *********************************** Gamestudio Pro 7.50 / WED V6.875
|
|
|
Re: Moving through Objects..
[Re: flutschi]
#244217
01/03/09 12:35
01/03/09 12:35
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
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 smile](/ubb7/images/graemlins/default_dark/smile.gif) but they can serve it's purpose ofc
Ubi bene, ibi Patria.
|
|
|
Re: Moving through Objects..
[Re: croman]
#244229
01/03/09 13:13
01/03/09 13:13
|
Joined: Nov 2008
Posts: 53 Switzerland (Luzern)
flutschi
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
|
yeah, now i never worked with c_move before, can u translate my code to c_move?
My System: Intel Core 2 Duo CPU P8400 @ 2.26 GHz 4 GB Ram NVIDIA GeForce 9600M GT 32 Bit Windows Vista *********************************** Gamestudio Pro 7.50 / WED V6.875
|
|
|
Re: Moving through Objects..
[Re: flutschi]
#244233
01/03/09 14:07
01/03/09 14:07
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
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
Ubi bene, ibi Patria.
|
|
|
Re: Moving through Objects..
[Re: croman]
#244248
01/03/09 15:52
01/03/09 15:52
|
Joined: Nov 2008
Posts: 53 Switzerland (Luzern)
flutschi
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
|
hmm, thx a lot there is a "me" missing ![smile smile](/ubb7/images/graemlins/default_dark/smile.gif) c_move( me,move_vec...); ![smile smile](/ubb7/images/graemlins/default_dark/smile.gif) and its still not working ![smirk smirk](/ubb7/images/graemlins/default_dark/smirk.gif) i can move through my door..
My System: Intel Core 2 Duo CPU P8400 @ 2.26 GHz 4 GB Ram NVIDIA GeForce 9600M GT 32 Bit Windows Vista *********************************** Gamestudio Pro 7.50 / WED V6.875
|
|
|
Re: Moving through Objects..
[Re: flutschi]
#244258
01/03/09 17:15
01/03/09 17:15
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
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
Ubi bene, ibi Patria.
|
|
|
|