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, The_Judge, Grant), 898 guests, and 5 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
question about c_trace #172952
12/15/07 16:20
12/15/07 16:20
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
i have a question concerning c_trace.. here is my code
Code:

if (vec_dist(my.x,player.x)<1000)
{
vec_set(temp,vector(1000,0,0));
vec_rotate(temp,tAng);
vec_add(temp,vector(my.x,my.y,my.z+32));
c_trace(vector(my.x,my.y,my.z),temp,USE_BOX|IGNORE_ME|IGNORE_YOU|IGNORE_PASSABLE|IGNORE_SPRITES);
if (you)
{
if (you == player && shoot_pause<0)
{
shoot(gPos);
shoot_pause = 30;
wait(1);
}
}
}



this works, however, if i dont use USE_BOX it doesnot work, what could eb the cause?


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: question about c_trace [Re: ello] #172953
12/16/07 07:09
12/16/07 07:09
Joined: Aug 2006
Posts: 128
Papua New Guinea
I
Impaler Offline
Member
Impaler  Offline
Member
I

Joined: Aug 2006
Posts: 128
Papua New Guinea
Is the origin of the player inside the model? If not, that would certainly cause it not to work without use_box


Murphey's Law:
<< if anything can go wrong, it will >>

(Murphey was an optimist).
Re: question about c_trace [Re: Impaler] #172954
12/16/07 08:16
12/16/07 08:16
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
I think the player's bounding box
is not set correctly.

Re: question about c_trace [Re: vlau] #172955
12/16/07 13:44
12/16/07 13:44
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
thanks, i changed the from position a bit and now it works...

the origni was inside the model


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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