|
|
Re: SYBEX????
[Re: not_me]
#121611
04/06/07 15:35
04/06/07 15:35
|
Joined: May 2005
Posts: 2,713 Lübeck
Slin
Expert
|
Expert
Joined: May 2005
Posts: 2,713
Lübeck
|
Quote:
well..i dont get any errors... when i try and run the level.
Then everything should work. Just add for example: SLX3_Bloom(2,2); somewhere in your function main, to get a nice bloom effekt.
To your other question: Which playerscript are you using?
Slin
|
|
|
Re: SYBEX????
[Re: Slin]
#121612
04/06/07 15:57
04/06/07 15:57
|
Joined: Sep 2005
Posts: 508 Texas
not_me
OP
User
|
OP
User
Joined: Sep 2005
Posts: 508
Texas
|
its a home made player script //player action - for player action player_move { player = me; wait(1); camera.genius = player; shift_sense = 2; while (me != NULL) { move_vec[0] = (key_force.y)*4 *time; player.pan -= (key_force.x)*5 *time; move_vec[0] = (key_w - key_s)*20 *time; move_vec[1] = (key_q - key_e) *16 *time; Move_vec.z = - trace(player.x,temp.x); strafeleft_percent = (strafeleft_percent +5*time)%100; ent_animate(me,"strafeleft",strafeleft_percent,ANM_CYCLE); straferight_percent = (straferight_percent +5*time)%100; ent_animate(me,"straferight",straferight_percent,ANM_CYCLE); vec_set(temp,my.x); temp.z -= 4000; Trace(player.x,temp.x); // traces from the player x/y/z to the modified temp x/y/z trace_mode = ignore_me+ignore_sprites+IGNORE_MODELS+USE_BOX; move_vec.z = (-trace(my.x,temp))*3*time; Distance_traced = trace(from_vec, to_vec); player.pan -= (key_force.x)*5 *time;
player.pan += (key_a-key_d)*8 *time; move_mode = IGNORE_YOU + IGNORE_PASSABLE + IGNORE_PUSH + ACTIVATE_TRIGGER + GLIDE; ent_move(move_vec,NULLVECTOR);
If (move_vec[0] == 0 && move_vec[1] == 0) { idle_percent = (idle_percent +5*time)%100; ent_animate(me,"idle",idle_percent,ANM_CYCLE); } else { if (key_shift) { run_percent = (run_percent + sign(move_vec[0])*5*time)%100; ent_animate(player,"run",run_percent,ANM_CYCLE); } else { // our movement animations will go here walk_percent = (walk_percent + sign(move_vec[0])*5*time)%100; ent_animate(player,"walk",walk_percent,ANM_CYCLE); } }
|
|
|
Re: SYBEX????
[Re: not_me]
#121614
04/06/07 16:21
04/06/07 16:21
|
Joined: May 2005
Posts: 2,713 Lübeck
Slin
Expert
|
Expert
Joined: May 2005
Posts: 2,713
Lübeck
|
I overworked your script a bit because you´ve got everything two or three times. I´m realy impressed that it should have worked... Code:
//player action - for player action player_move { player = me; camera.genius = me; shift_sense = 2; while(me) { move_vec[0] = (key_w - key_s)*20 *time; move_vec[1] = (key_q - key_e) *16 *time; player.pan -= (key_force.x)*5 *time; player.pan += (key_a-key_d)*8 *time; strafeleft_percent = (strafeleft_percent +5*time)%100; ent_animate(me,"strafeleft",strafeleft_percent,ANM_CYCLE); straferight_percent = (straferight_percent +5*time)%100; ent_animate(me,"straferight",straferight_percent,ANM_CYCLE); vec_set(temp,my.x); temp.z -= 4000; trace_mode = ignore_me+USE_BOX+ignore_passents+ignore_passable; my..z = -trace(my.x,temp); if(move_vec[0] == 0 && move_vec[1] == 0) { idle_percent = (idle_percent +5*time)%100; ent_animate(me,"idle",idle_percent,ANM_CYCLE); }else { if (key_shift) { run_percent = (run_percent + sign(move_vec[0])*5*time)%100; ent_animate(me,"run",run_percent,ANM_CYCLE); }else { // our movement animations will go here walk_percent = (walk_percent + sign(move_vec[0])*5*time)%100; ent_animate(me,"walk",walk_percent,ANM_CYCLE); } move_mode = IGNORE_YOU + IGNORE_PASSABLE + IGNORE_PUSH + ACTIVATE_TRIGGER + GLIDE; ent_move(move_vec,NULLVECTOR); wait(1); } }
|
|
|
Re: SYBEX????
[Re: Slin]
#121615
04/06/07 16:50
04/06/07 16:50
|
Joined: Sep 2005
Posts: 508 Texas
not_me
OP
User
|
OP
User
Joined: Sep 2005
Posts: 508
Texas
|
O THANK YOU! THNK YOU!  ID KISS YOU BUT IM NOT THAT WAY! AND UR ALITTLE FAR AWAY...but wait..an error.. it told me endless loop in player_move. doesnt tell me where this error occurs though.
Last edited by not_me; 04/06/07 16:54.
|
|
|
Re: SYBEX????
[Re: not_me]
#121616
04/06/07 19:42
04/06/07 19:42
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
It does that when there isn't a wait() statement inside a while() loop, but there is... so I don't see why you're getting that error.
xXxGuitar511 - Programmer
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|