Jump to content
Sign in to follow this  
Renegade

Is there a way to make a ap-mine addon...

Recommended Posts

Does somebody know where to find the definitions that are responsible for a mine to explode when under heavy vehicles.

Is it possible to create a new "mine class" that makes a mine only expolode when near a human being?

Share this post


Link to post
Share on other sites

not sure about that but if u want a simple AP mine look at OPFEC it explains it somewhere, can't remember exactly where. You could also stick a machine gun underground and put a small trigger over it that tells it so "setdammage 4" whenever someone goes near and it will explode underground and kill the person above it

Share this post


Link to post
Share on other sites
Guest

AP mines explode also when a tank runs over them biggrin.gif

There are several easy ways of creating AP mines.

One could be for instance creating a trigger with the radius of the desired mine. When something steps inside the trigger you camcreate some form of explosion.

Anyway, moving to Mission Editing smile.gif

Share this post


Link to post
Share on other sites

@denoir: yes, I already know that.

But is there a way to connect a trigger and a script to a model (e. g. in config.cpp) so that the mine will explode automatically without "user placed" triggers in the mission editor?

Share this post


Link to post
Share on other sites

Couldnt you do that the same way you add any other vehicle to OFP?

Share this post


Link to post
Share on other sites

Quoting myself from the OFPEC-forums, where I go by the name of Blackblood:

This little baby has saved a lotta scripting time:

("land" counttype thislist) > 0

Include the brackets and put this in the condition field (expCond) of the trigger.

The trigger will now only activate if something "grounded" steps on it. You can replace the word "land" with "man" or "tank" or "M113" and so on...

This is not limited to ground units. Just put the word "Helicopter" or "Plane" and so on...

On activation: kaboom = "HEAT125" camcreate [getpos nameofyourtrigger]

HEAT125 may be a little overkill for a troopmine, so try the the SHELL-ammo or something.

Simplification:

1) Place a trigger, name it "blow1". Make the radius ~0.5m.

2) Triggered by Anybody, Once

3) In the CONDITION field: ("Man" counttype thislist) >0

4) In the ON ACTIVATION field: kaboom = "SHELL120" camcreate [getpos blow1 select 0, getpos blow1 select 1,0]

Happy dismembering!

Share this post


Link to post
Share on other sites

I like to use:

Boom="Heat73" camcreate [Getpos AP3 select 0, getpos AP3 select 1, -4]

That will just blow the legs off the soldier

HEAT73=Sabot73

Shell73=HEAT73

Share this post


Link to post
Share on other sites

Yup, that´s even better. Thanx, InqWiper.

Or to put it in the brutal tounge of the north:

Vĺld är alla lösningars urmoder. biggrin.gif

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Vĺld är alla lösningars urmoder.<span id='postcolor'>

I hadnt heard that one smile.gif

Share this post


Link to post
Share on other sites

Could be because I made it up on the fly...

Min egen tolkning av "Allt gĺr att lösa med vĺld".

An apology to you non-swedes for my blabbering.

*Leaving this thread in a hurry*

Share this post


Link to post
Share on other sites

Thank you Starsky and InqWiper and everyone. The MG method was interesting but AI guys and vehicles walk around them. The camcreate with your suggestions is great. I think a variety of "leg blowers" and "toss spam thru air" are good. I'm a newbie and am just experimenting, but they're great.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×