Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Mon Jul 21, 2025 10:30 am
All times are UTC + 0
[Ares] How to make land mines explode instantaneously when the unit is on top
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Ousagi
Rocket Infantry


Joined: 02 Nov 2022

PostPosted: Sun Jun 22, 2025 12:42 am    Post subject:  [Ares] How to make land mines explode instantaneously when the unit is on top
Subject description: I'm not talking about when the unit is near it. I'm talking about when the unit is actually on top of it
Reply with quote  Mark this post and the followings unread

How do I make it so a mine instantly explodes when a unit is on top of it? The unit could pass through the mine but needs to stay there for a while then it explodes.
But if the unit just move normally, it doesn't detonate automatically. I know proximity mines where the Range=1.5 but mine is Range=.5
so the unit has to be on top to explode, but it should be instantaneous, without delay.

I thought it had something to do with the building rotating before firing. But even with Omnifire=yes, Turret=no, and ROT=100, still is not instant when targeting.
Code:
[GXMINE]
UIName=NOSTR:Mine
BuildCat=Combat
Strength=10000
Armor=steel
Prerequisite=BARRACKS,GACNST
TechLevel=1
Adjacent=14
Sight=1
DetectDisguise=yes
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=500
BaseNormal=no
Points=30
Power=0
Crewed=no
Capturable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnim=Dbris1sm,Dbris1lg,Dbris4sm,Dbris5sm,Dbris4lg,Dbris7sm,Dbris8sm,Dbris5lg,Dbris4lg
MaxDebris=15
MinDebris=5
Turret=no
ROT=100
Primary=MineBomb
DeathWeapon=MineBomb
IsPassable=yes  ;; Ares Code
ThreatPosed=0
DamageParticleSystems=SparkSys,LGSparkSys
IsBaseDefense=yes
AntiInfantryValue=25
AntiArmorValue=10
AntiAirValue=0
Trainable=no

[MineBomb]
Projectile=Invisible
Damage=500000
Speed=100
Warhead=MineBombWH
Anim=RING1
Range=.5
ROF=1
Suicide=yes
OmniFire=yes
OmniFire.TurnToTarget=no

[MineBombWH]
Verses=150%,100%,100%,90%,50%,50%,100%,150%,30%,100%,100%
Sparky=no
Fire=yes
InfDeath=4
CellSpread=1.5
PercentAtMax=.5
Bright=yes
AnimList=MININUKE

Last edited by Ousagi on Sun Jun 22, 2025 11:43 am; edited 2 times in total

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sun Jun 22, 2025 8:33 am    Post subject: Reply with quote  Mark this post and the followings unread

Use Range=1, using .5 means the unit has to be standing directly at the center of the mine for it to work. Infantry can stand at the corner of a cell tho so they might not be triggering it.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Ousagi
Rocket Infantry


Joined: 02 Nov 2022

PostPosted: Sun Jun 22, 2025 11:41 am    Post subject: Reply with quote  Mark this post and the followings unread

I use a tank to test. The tank, when near the mine, still detonates in Range=1 and it takes a moment before it does.
Everything below 1 doesn't detonate the mine and needs the unit to be on the same cell.

The part where it takes a moment to explode is the main problem. The mine seems to need to "rotate" before "attacking" which is why I think it takes a moment before exploding.
I thought OmniFire=yes would fix the issue or, even ROT=100 or Turret=no, but no, it still takes a some time before it rotates towards the tank, then it explodes.

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sun Jun 22, 2025 2:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

When you say it "takes a moment" are you talking seconds or frames?

I have mines in my mod that are coded similar to your ones and I have never noticed any sort of noticeable delay.

Edit: You don't have OpportunityFire=yes on the building tho, that might have an effect.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Ousagi
Rocket Infantry


Joined: 02 Nov 2022

PostPosted: Sun Jun 22, 2025 7:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

Sorry, I shouldn't have used "moment" or "a while". What I meant was it takes about a second or more before it explodes but there is now a better presentation below to show what I meant.
It also has the OpportunityFire=yes now on it like you said.

P.S. The mines have Range=1. If it were to have Range=.5, the Grizzly Tank would've move round and round without the mines ever detonating



Mines.gif
 Description:
 Filesize:  14.47 MB
 Viewed:  580 Time(s)

Mines.gif



Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Thu Jun 26, 2025 11:04 am    Post subject: Reply with quote  Mark this post and the followings unread

That isn't normal, the mine should detonate as soon as the unit moves over the building, I'm not sure what the issue could be tho.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Ousagi
Rocket Infantry


Joined: 02 Nov 2022

PostPosted: Thu Jun 26, 2025 11:31 am    Post subject: Reply with quote  Mark this post and the followings unread

if you say it's not normal, then there is a way to make it detonate instantly.
I'll update this when I find out what's causing the issue. I just needed to know if it was possible.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.2498s ][ Queries: 14 (0.0477s) ][ Debug on ]