Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Need help with c_trace #232588
10/22/08 15:26
10/22/08 15:26
Joined: Aug 2004
Posts: 87
IDontLikeSoccer Offline OP
Junior Member
IDontLikeSoccer  Offline OP
Junior Member

Joined: Aug 2004
Posts: 87
I have big problem with old trace syntax. I'em not coder and i need help how i can write next part of code if i want use new c_trace:

Quote:
trace_mode = ignore_me+ignore_push+ignore_passable+ignore_sprites+use_box;
my.z -= trace(my.x,vector(my.x,my.y,my.z - 4000));


my z movement:

Quote:
vec_set(temp,my.x);
temp.z -= 4000;
trace_mode = ignore_me+ignore_models+ignore_passable+ignore_sprites+ignore_maps+use_box;
result = trace(my.x,temp);


and my gravity:

Quote:
trace_mode = ignore_me+ignore_push+ignore_passable+ignore_sprites+use_box;
result = trace(my.x,vector(my.x,my.y,my.z - 4000));
player_ground_dist = result;


Thanks for any help.

Re: Need help with c_trace [Re: IDontLikeSoccer] #232990
10/25/08 17:17
10/25/08 17:17
Joined: Aug 2004
Posts: 87
IDontLikeSoccer Offline OP
Junior Member
IDontLikeSoccer  Offline OP
Junior Member

Joined: Aug 2004
Posts: 87
Did anyone can show me how this code looks if i want use c_trace. I need some help about translate old trace_mode syntax. I was upgrade my Game Studio A7.07 to A7.50 and my code wont work correctly :-)

Anyone please!

Re: Need help with c_trace [Re: IDontLikeSoccer] #233012
10/25/08 21:02
10/25/08 21:02
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
Code:
my.z -= c_trace(my.x,vector(my.x,my.y,my.z - 4000),IGNORE_ME|IGNORE_PUSH|IGNORE_PASSABLE|IGNORE_SPRITES|USE_BOX);

...

vec_set(temp,my.x);
temp.z -= 4000;
result = trace(my.x,temp,IGNORE_ME|IGNORE_PUSH|IGNORE_PASSABLE|IGNORE_SPRITES|USE_BOX);


...
 
result = trace(my.x,vector(my.x,my.y,my.z - 4000),IGNORE_ME|IGNORE_PUSH|IGNORE_PASSABLE|IGNORE_SPRITES|USE_BOX);
player_ground_dist = result; 



Last edited by flits; 10/25/08 21:02.

"empty"
Re: Need help with c_trace [Re: flits] #233062
10/26/08 13:36
10/26/08 13:36
Joined: Aug 2004
Posts: 87
IDontLikeSoccer Offline OP
Junior Member
IDontLikeSoccer  Offline OP
Junior Member

Joined: Aug 2004
Posts: 87
Thank you Flits verry much!!!


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1