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
4 registered members (AndrewAMD, TipmyPip, NewbieZorro, Grant), 14,196 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
Page 2 of 2 1 2
Re: A8 2 possible issues ent_animate and map entities [Re: Rich] #332870
07/12/10 15:33
07/12/10 15:33
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Ok. I guess for skills etc. you need to use an entity. But regions are faster to detect than passable maps. Region detection is medium, while entity detection is slow.

Re: A8 2 possible issues ent_animate and map entities [Re: jcl] #333397
07/16/10 05:56
07/16/10 05:56
Joined: Jan 2002
Posts: 300
Usa
Rich Offline OP
Senior Member
Rich  Offline OP
Senior Member

Joined: Jan 2002
Posts: 300
Usa
Ok I just wanted to update to respond to the last suggestion about using regions, After this I will let the topic retire.

I started to test out the possibility of using regions, but this also would require as many region checks as their are types of regions. For instance, If I had 20 different regions set up with different behaviors, that would be 20 region checks each frame. Where as detecting passable_ent was only once c_trace / c_move, which were already being called by the movement code. This was also more flexible as the skills could be used to change the behavior, with limitless combinations. Helghast's solution would work great, if that event would trigger when inside of another entity.

Perhaps if c_trace could return region information, or if a function could be created like ent_region, which returns the name of a region a specific entity is in... But alas, I would prefer passable entity / block detection with the new format. Thanks for reading and replies laugh

Last edited by Rich; 07/16/10 05:58.
Re: A8 2 possible issues ent_animate and map entities [Re: Rich] #333399
07/16/10 07:18
07/16/10 07:18
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Ok, but you can believe me that regions are much faster than c_trace. You won't need 20 region checks for finding a region to a certain position, you need maybe 2 or 3, dependent on the location in the ABT.

Page 2 of 2 1 2

Moderated by  jcl, Nems, Spirit, Tobias 

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