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
4 registered members (fogman, Grant, AndrewAMD, juanex), 989 guests, and 8 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
in_passable, on_passable [A8] #336567
08/05/10 00:48
08/05/10 00:48
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
Will this functions start working with A8? BTW, I used old gravity sctipt with A8 (without the create mesh in WED, with it works as usual), trace can't detect anything... is that a bug?
Here is a gravity code:
Quote:
function handle_gravity()
{
my_height = c_trace(my.x,vector(my.x,my.y,my.z - 1000),IGNORE_MODELS|IGNORE_PASSABLE|USE_BOX);
if(my_height > 10)
{
accelerate(absdist.z,-10,1); // 10 is gravity and 1 is acceleration
}
else
{
absdist.z = -(my_height/1.2)+4; // play with 4 (used for smooth)
absdist.z = clamp(absdist.z,-4,4); // limit absdist
}
}



Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: in_passable, on_passable [A8] [Re: 3run] #336584
08/05/10 08:13
08/05/10 08:13
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
A6 levels must be recompiled with A7 or A8 - see the compatibility notes in the manual.

If you have problems writing a gravity movement, look at the example in the manual under "c_move", or in the AUM - there are many examples.

Re: in_passable, on_passable [A8] [Re: jcl] #336677
08/05/10 17:37
08/05/10 17:37
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
I don't have problem with writing gravity movement, it just doesn't work with A8 properly, I tried the same demo with last A7 and it works perfect, but doesn't work with A8! ON_PASSABLE is not working, not in A7 not in A8 either! I never worked with A6. IN_PASSABLE and IN_SOLID works good.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: in_passable, on_passable [A8] [Re: 3run] #336680
08/05/10 17:52
08/05/10 17:52
Joined: Apr 2008
Posts: 581
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 581
Austria
Gravity movement works perfect here with A8.

IN_SOLID and the other flags were for AABB collision I think, they work only in A6 levels. In A7 and A8, you have OBB collision. You use the CONTACT struct with A7, not IN_SOLID.

That was probably the mistake. A6 levels and AABB was still supported in A7, but not in A8. Just compile your levels to A7 meshes and use CONTACT and everything is fine.

Re: in_passable, on_passable [A8] [Re: Petra] #336681
08/05/10 18:06
08/05/10 18:06
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
About the gravity, yes it works perfect (my example) even with A8, but when I unchecked the "Create Meshes" flag in Map Compiler, gravities trace doesn't detect ground under players feet. With previous versions (A7) the same script works perfect (with and without the "Create Meshes" flag).


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: in_passable, on_passable [A8] [Re: 3run] #336707
08/05/10 19:40
08/05/10 19:40
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
I am not sure, but i think if you uncheck the create mesh, then a old A6 AABB level will be compiled and that is not supportet in A8.

Re: in_passable, on_passable [A8] [Re: Widi] #336709
08/05/10 19:45
08/05/10 19:45
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
Thank you Widi, may be you are right. But how to get animated textures to work then? With "Create Meshes" it doesn't work.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

Moderated by  HeelX, Spirit 

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