Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,654 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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