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
1 registered members (TipmyPip), 18,449 guests, and 6 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
explosion damaging physics entities #76194
05/31/06 22:12
05/31/06 22:12
Joined: Sep 2002
Posts: 344
São Paulo SP Brazil
Marcio Esper Offline OP
Senior Member
Marcio Esper  Offline OP
Senior Member

Joined: Sep 2002
Posts: 344
São Paulo SP Brazil
Hi,

I wold know if some one have one idea to how to make an object that when the player hit in it, with a physics objct like a car for example, it explode and make a impact wave that affect all physic entities near the wave. Like one land mine for example.

Thank you for attention,

Best regards,

Marcio

Re: explosion damaging physics entities [Re: Marcio Esper] #76195
06/01/06 06:18
06/01/06 06:18
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
well i think you would need to scan a specified range and all physic entities schould then have a force applied by using phent_addforceglobal (ENTITY* entity,VECTOR* vecForce,VECTOR* vecPoint );


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: explosion damaging physics entities [Re: ello] #76196
06/02/06 06:12
06/02/06 06:12
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
I had to use bomb explosions in Tower. I found it more reliable to set a global var to 1 when the bomb exploded, then set a vector to the bomb's position, at which point that funciton waited one frame, all the entities that could be damaged would check to see if the global var was set to 1, if so they would see if they were in the blast range, if so they took damage. Now if you have things that could effect the blast, say a door, then you would need to trace. After all that was said and done the bomb function came back and set that var back to 0, and the vector to a huge number that nothing would ever come close to. This was to prevent bugs.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Re: explosion damaging physics entities [Re: FoxHound] #76197
06/04/06 18:30
06/04/06 18:30
Joined: Sep 2002
Posts: 344
São Paulo SP Brazil
Marcio Esper Offline OP
Senior Member
Marcio Esper  Offline OP
Senior Member

Joined: Sep 2002
Posts: 344
São Paulo SP Brazil
Hi,

I will test this ideas .

Thank you.

Best regards,

Marcio


Moderated by  HeelX, Spirit 

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