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
2 registered members (OptimusPrime, AndrewAMD), 14,580 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
SOLVED - Non-physical gravity - SOLVED #424888
06/23/13 19:27
06/23/13 19:27
Joined: Jan 2013
Posts: 106
Only in your imagination!
The_KING Offline OP
Member
The_KING  Offline OP
Member

Joined: Jan 2013
Posts: 106
Only in your imagination!
******PROBLEM SOLVED******

Last edited by The_KING; 06/24/13 07:07.
Re: Non-physical gravity [Re: The_KING] #424889
06/23/13 20:29
06/23/13 20:29
Joined: Jun 2013
Posts: 108
Alberta, Canada
C
CanadianDavid Offline
Member
CanadianDavid  Offline
Member
C

Joined: Jun 2013
Posts: 108
Alberta, Canada
Using c_trace to determine the distance to the ground is a perfectly fine, working way to simulate gravity. Since the c_trace is stored in variable, "distance_to_ground," it should not be affected by a second c_trace. Just make sure the variable is a local variable and not a global variable!

Re: Non-physical gravity [Re: CanadianDavid] #424891
06/23/13 21:03
06/23/13 21:03

M
Malice
Unregistered
Malice
Unregistered
M



You should also place gravity_vars in the abs_vector of the c_move(my, rel_vec, vector(0,0,gravity_var), MODES);

Also The_KING like I said before you will need to use more than one c_trace to do what you want . 1 for the target dot, 1 for shooting and 1 for gravity. It is ok to use more then one c_trace but you need to do logic from each c_trace right after the c_trace because the next one will modify the same data that was set by the pervious one.

Like CanadianDavid says you need to be using local variables and entity skill(which are local variables too)

Last edited by Malice; 06/23/13 21:07.
Re: Non-physical gravity [Re: The_KING] #424910
06/24/13 07:05
06/24/13 07:05
Joined: Jan 2013
Posts: 106
Only in your imagination!
The_KING Offline OP
Member
The_KING  Offline OP
Member

Joined: Jan 2013
Posts: 106
Only in your imagination!
***PROBLEM SOLVED***

Re: Non-physical gravity [Re: The_KING] #424913
06/24/13 08:18
06/24/13 08:18
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
@ THE_KING, please do not modify your original posts as they are the reason why the thread exists.
This will be archived with every other post so it would be helpful for folks with similar probs to yours to read the original question in order to understand the subsequent replies.

You of course, dont have to but do consider what the ramifications are for removing the question for other users who are definitely going to be finding they have the same prob and if your question was still there, they would find this thread great.

Cheers....


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