Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Turret Popping With Smoke and mirrors  (Read 20274 times)

0 Members and 2 Guests are viewing this topic.

Grendel

  • Guest
Turret Popping With Smoke and mirrors
« on: 01 Jun 2005, 01:37:15 »
I think I brought this up about a year ago in another thread, but d***d if I can remember where.

I have a dream...
I have a dream that when I kill a tank in OFP, the turret will blow off...


I know this would be possible using two things (well kind of three but...read on please)

The first thing, the scripting, I can do.

The addon stuff...well lets just say that I have invested pretty much all three of my brain cells to learning how to be a decent scripter.

If someone were to MODIFY (not necessarily create from new) the existing models of a turreted vehicle, realization of this dream would be very possible.

The model would need to be opened, and the turret and hull would need to be separated, and configed as objects that can be setvelocity'd and saved as separate objects within the addon .pbo.


That's all I need.


the rest I can do:

(the smoke)
The script would add a killed eventhandler, and upon death the script would getpos and getdir the dead tank, use drop effects to create a shockdust effect  (mainly to hide the old switcheroo) and delete the dead tank.  

(the mirrors)
The HULL would be setpos'd and setdir'd where the dead tank was, and the TURRET would be setpos's only to be setvelocity'd with some semi-random values, and a shell125 would be camcreated under it to blow it (and add some catastrophic effects).  More drop effects etc would be impimented for cookoffs etc.

I have a dream...

-Grendel




« Last Edit: 01 Jun 2005, 01:40:44 by Grendel »

Offline Pilot

  • Contributing Member
  • **
Re:Turret Popping With Smoke and mirrors
« Reply #1 on: 01 Jun 2005, 02:10:19 »
Grendel, this is one thing I also want to see OFP do.  I have one question for you:

I assume you will delete the old tank when you create the new objects, so do you want these new objects to be able to take crew, so you can transfer the crew from the old vehicle to the new objects?

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Turret Popping With Smoke and mirrors
« Reply #2 on: 01 Jun 2005, 02:35:16 »
I know this has been done... I just can't seem to find a link. I never tried it myself, but i was some effects pack/mod, or some addon. Real helpful, I know ;). Anyway, if you ask on the official forums, I promise you'll get a link to it in about 10 seconds.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline oyman

  • Members
  • *
  • king of pings
Re:Turret Popping With Smoke and mirrors
« Reply #3 on: 01 Jun 2005, 02:35:24 »
I guess i should try and modify the m1a1 into 2 pieces ;)


ill be back in around ~30minutes


i think you are talking about the one effect pack made by vitho or something like that
« Last Edit: 01 Jun 2005, 02:36:45 by oyman »

Offline Pilot

  • Contributing Member
  • **
Re:Turret Popping With Smoke and mirrors
« Reply #4 on: 01 Jun 2005, 02:46:33 »
@oyman
I've got the T80 in two pieces (it wasn't that hard), but I'm trying to write a config for it (which I'm not good at)

Offline oyman

  • Members
  • *
  • king of pings
Re:Turret Popping With Smoke and mirrors
« Reply #5 on: 01 Jun 2005, 02:47:51 »
give me the model names and ill write the config then ;)

also the folder name
« Last Edit: 01 Jun 2005, 02:48:35 by oyman »

Offline Pilot

  • Contributing Member
  • **
Re:Turret Popping With Smoke and mirrors
« Reply #6 on: 01 Jun 2005, 02:52:47 »
Ok, the model names are:

T80_Hull.p3d
T80_Turret.p3d

The folder name (currently) is simply T80

Thanks for the help, I know a little bit about configs, but certainly not enough :P

Offline oyman

  • Members
  • *
  • king of pings
Re:Turret Popping With Smoke and mirrors
« Reply #7 on: 01 Jun 2005, 03:00:14 »
config is based off my ladder addon, so it should work first time trying ;D

Grendel

  • Guest
Re:Turret Popping With Smoke and mirrors
« Reply #8 on: 01 Jun 2005, 03:16:10 »
Thanks Guys!

Wow, that was quick too!  I will have the scripting done in about a night, once I have the models to play with...

And it would be more realistic if the crew could be moved into the 'new' hull, but if this is a problem I can easily script around it...

In Fact... I didn't even think of the crew, but that gives me an idea!  I could script the turret crew to "get blasted out of the turret" immidiately on impact if they are turned out. BTW Believe me, this does happen! I saw some guncamera footage of my unit's Apaches during the first gulf war, and an Iraqi TC got popped out of his hatch like a cork when a helfire impacted behind the turret.

Thanks for jumping on this, guys and I'm confident this one will be a winner!

-Grendel

Offline Pilot

  • Contributing Member
  • **
Re:Turret Popping With Smoke and mirrors
« Reply #9 on: 01 Jun 2005, 03:21:01 »
@Grendel
I'll see what I can do about moveing the men in the tank

@oyman
Thanks for the config, it gets the objects in game.  I do get an error message on startup, though, and it seems kind of strange:
No Entry 'config.bin/CfgVehicles/T80_Turret.submerged'.

It doesn't seem to effect the objects ingame

Any ideas ???

Offline oyman

  • Members
  • *
  • king of pings
Re:Turret Popping With Smoke and mirrors
« Reply #10 on: 01 Jun 2005, 03:24:55 »
hmm, i didnt get that when i tested the config ???

oh well atleast it gets the models ingame ;D

Offline Pilot

  • Contributing Member
  • **
Re:Turret Popping With Smoke and mirrors
« Reply #11 on: 01 Jun 2005, 03:28:46 »
Quote
oh well atleast it gets the models ingame ;D
That's true

It is probably something I did to the model, anyway ::)

Dubieman

  • Guest
Re:Turret Popping With Smoke and mirrors
« Reply #12 on: 01 Jun 2005, 03:58:13 »
Gen Barron, I had that pack you were talkin about. I deleted it though since it added like120+ things to my objects list making it unbearable to scroll through. But it was in russian or something, dumas of abrams and 2-3 pieces of every vehicle, almost every vehicle. I guess it would have been substitued in like what you're trying to do.

The only fun thing I remember from the pack is the guys with cocktails that exploded and set ppl on fire. Its funny seeing Guba run about. Also, I used a bomb on a abrams turret and it flew up in the  air off a cliff and killed someone, that I could never replicate, ever. Very funny, boom, shewwww, splat.

But that really doesn't help does it?
I share your vision though. 8) ;D

Grendel

  • Guest
Re:Turret Popping With Smoke and mirrors
« Reply #13 on: 01 Jun 2005, 05:27:29 »
Quote
I deleted it though since it added like120+ things to my objects list making it unbearable to scroll through. But it was in russian or something, dumas of abrams and 2-3 pieces of every vehicle, almost every vehicle

Hmmmm...thats a good point.  Maybe a compromise would be to have a sort of 'universal' blown to hell, twisted hull and turret for each vehicle TYPE; All abrams get a generic Abrams hull/turret, All T series Ruskie tanks get generic T-72 hull/turrets, all M2 etc..etc...

I could set the script up to pull the appropriate Hull/Turret Combo for the vehicles in a particular array.

As long as the blown vehicles were retextured to make them a F***d up looking anyway, no one should notice too much.

Good work and good input so far, thanks everyone!

-Grendel

Offline Pilot

  • Contributing Member
  • **
Re:Turret Popping With Smoke and mirrors
« Reply #14 on: 01 Jun 2005, 13:58:37 »
That's not a bad idea.

The M1 should get it's own
The T72 and T80 should share one
The T55 and M60 should share one
The M2A2 should probably get it's own

Is it possible to pop off the tiny turret of the BMP?
What about the M113?