Home   Help Search Login Register  

Author Topic: EASY non-hurting explosions  (Read 706 times)

0 Members and 1 Guest are viewing this topic.

Offline Pr0ph3t

  • Members
  • *
EASY non-hurting explosions
« on: 08 Mar 2005, 02:10:41 »
okay normally if you wish to summon an explosion to a units position, one of the ways to do so would be to create a trigger, name it whatever you want and in the command line of the trigger write:

explosion = "shell125" camCreate (getpos triggername);
explosion = "heat125" camCreate (getpos triggername);
explosion = "hellfire" camCreate (getpos triggername);

these are the ones I know about and use most.. Now if you want to summon JUST the explosion WITHOUT injuring anyone then you can easily do the following. Same everything except notice the omition of the 125:

explosion = "shell" camCreate (getpos triggername);
explosion = "heat" camCreate (getpos triggername);

Only thing is I don't know how to do it with hellfire. But shell does lots of smoke so its pretty good. A lot easier than all that programming! yeesh!

Offline Roni

  • Members
  • *
  • Play the Game !
Re:EASY non-hurting explosions
« Reply #1 on: 08 Mar 2005, 02:54:15 »
Hey, I didn't know that !!  :o  ;D

I'm going to find that info VERY useful - thanks !   :)



roni

Offline Pr0ph3t

  • Members
  • *
Re:EASY non-hurting explosions
« Reply #2 on: 08 Mar 2005, 02:59:27 »
I don't know if you'll also find this usefull, but usually I prefer to let the player get involved inthe explosions. You may find it more eyecandy-ish if you allowdammage false, get caught up in some explosions, unitsetpos "down" to get that dug into the dirt because you're hit feeling and then allowdammage true again.

I'm telling you its good.

Offline Roni

  • Members
  • *
  • Play the Game !
Re:EASY non-hurting explosions
« Reply #3 on: 08 Mar 2005, 03:14:42 »
I read that allowdammage didn't work after v1.30 or something?  If it still does that would be even greaterer (apologies to my third grade english teacher) !

I've got a mission called The Grinder which is just one endless slaughterfest of slowly respawning groups grinding towards the others base camp, with a time dilation script (10 minutes = 1 day) and a few simple artillery scripts (prority barrage at 300m, full barrage at 500m, smoke, flares) thrown in for added mayhem.

I've been looking to make some sort of "Hit the Dirt" script that would pin all the group members to the ground, shut them up (ie no fire) and make them partially immune to enemy attacks.  I was even going to camcreate some grass objects around them to add to the effect !

Now either of the above routines would work.  Non-lethal artillery mixed in with real boom-booms or allowdamage false for the duration of the script would both work wonders.

Eventually I'll make my dream mision - the Somme, day one !

 :gunman:                  :noo:    :help:   :'(

roni

Offline Pr0ph3t

  • Members
  • *
Re:EASY non-hurting explosions
« Reply #4 on: 08 Mar 2005, 03:26:04 »
maybe you'd like to team up with me. I've made 42/50 missions for my campaign. I have no intros/outros.
So I'm putting music/sounds/voices... Might make a good team. READ MY QUESTION TWO POSTS AGO!!! :(

BTW All my missions are made with OFP 1.0 no addons or anything. Pure OFP power. Its taken me 1 1/2 years to finely craft these missions
« Last Edit: 08 Mar 2005, 03:26:51 by Pr0ph3t »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:EASY non-hurting explosions
« Reply #5 on: 08 Mar 2005, 04:32:48 »
OFP 1.0???    :o   :o   :o

No wonder you can still use allowDammage.

I think the number of people running OFP 1.0 will be in the small minority


Planck
I know a little about a lot, and a lot about a little.

Dubieman

  • Guest
Re:EASY non-hurting explosions
« Reply #6 on: 08 Mar 2005, 04:59:03 »
recruiting = hit with mod stick ;)

Its amazing that the game is still goin strong at 4 years or so, but to have ppl still using v1.0 regularly makes OFP some sort of well... it can't be categorized. :P

I'll have to try the shell trick.

intros/outros: I know you've read a whole lot already, but maybe try looking in the ed depot for cam scripting guides? Look for the intro one by snYpir and then Messiah's tut. ;)


Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:EASY non-hurting explosions
« Reply #7 on: 08 Mar 2005, 08:20:45 »
Another random tidbit:
if you camcreate an explosion at the location of a trigger the explosion will happen at sea level.  Depending on where you are this can also reduce the damage done.

Offline Pr0ph3t

  • Members
  • *
Re:EASY non-hurting explosions
« Reply #8 on: 08 Mar 2005, 08:57:54 »
Actually in one of the missions in my campaign you're coming in on boats, a helicopter comes in and destroys the one in front of you. By placing multiple explosions (with the 125) and the boat moving forward it does a nice 360 in the air as it spins.. With an eject group it get spretty messy in mid-air.. I did the same for when you approach the coast, except this time you get hit and thrown outo f the boat in mid air onto the coast. possibilities are endless