Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, LorraineJones, VoroneTZ, Akow), 1,446 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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 | 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