.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPMBT
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old November 30th, 2008, 09:57 AM

Koh Koh is offline
Corporal
 
Join Date: Apr 2008
Posts: 112
Thanks: 1
Thanked 10 Times in 7 Posts
Koh is on a distinguished road
Default Bail out negates opfire

While fiddling around I couldn't help noticing that bailing out the crew from a vehicle loaded with troops unloads the vehicle without giving the enemy opfire. Is this intended behaviour? Or a result of "this really needs to be done this way or the game will break"?

- Koh
Reply With Quote
  #2  
Old November 30th, 2008, 10:39 AM
Mobhack's Avatar

Mobhack Mobhack is online now
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,988
Thanks: 482
Thanked 1,922 Times in 1,250 Posts
Mobhack is on a distinguished road
Default Re: Bail out negates opfire

I will have a look at this

Andy
Reply With Quote
  #3  
Old December 1st, 2008, 06:22 AM

Warhero Warhero is offline
Second Lieutenant
 
Join Date: Jun 2005
Posts: 570
Thanks: 2
Thanked 30 Times in 28 Posts
Warhero is on a distinguished road
Default Re: Bail out negates opfire

Koh are you sure that there were even 1 enemy unit somewhere near your vehicle? I mean that enemy had enough firing range to fire your unit and/or there was not any forest/buildings/etc. between vehicle and enemy?
Reply With Quote
  #4  
Old December 1st, 2008, 09:00 AM
Cross's Avatar

Cross Cross is offline
Captain
 
Join Date: Jun 2006
Location: UK / USA
Posts: 895
Thanks: 32
Thanked 282 Times in 123 Posts
Cross is on a distinguished road
Default Re: Bail out negates opfire

Crews can be very small; could it be that the enemy just didn't spot the crew?


Oh, you are saying the troops were unloaded by bailing out the crew; and the troops weren't shot at.

Last edited by Cross; December 1st, 2008 at 09:08 AM..
Reply With Quote
  #5  
Old December 1st, 2008, 09:31 AM

Koh Koh is offline
Corporal
 
Join Date: Apr 2008
Posts: 112
Thanks: 1
Thanked 10 Times in 7 Posts
Koh is on a distinguished road
Default Re: Bail out negates opfire

Quote:
Originally Posted by Warhero View Post
Koh are you sure that there were even 1 enemy unit somewhere near your vehicle? I mean that enemy had enough firing range to fire your unit and/or there was not any forest/buildings/etc. between vehicle and enemy?
Yeah I'm sure. I've attached a savegame so you can witness the phenomena yourself. First try unloading unit number B2, Merkava MICV. You will trigger around half a dozen opfires. Then reload the saved game and try bailing out that same Merkava MICV. You will trigger no op fires.

- Koh
Attached Files
File Type: rar Bail out.rar (35.0 KB, 109 views)
Reply With Quote
  #6  
Old December 1st, 2008, 10:51 AM
Mobhack's Avatar

Mobhack Mobhack is online now
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,988
Thanks: 482
Thanked 1,922 Times in 1,250 Posts
Mobhack is on a distinguished road
Default Re: Bail out negates opfire

Quote:
Originally Posted by Koh View Post
Quote:
Originally Posted by Warhero View Post
Koh are you sure that there were even 1 enemy unit somewhere near your vehicle? I mean that enemy had enough firing range to fire your unit and/or there was not any forest/buildings/etc. between vehicle and enemy?
Yeah I'm sure. I've attached a savegame so you can witness the phenomena yourself. First try unloading unit number B2, Merkava MICV. You will trigger around half a dozen opfires. Then reload the saved game and try bailing out that same Merkava MICV. You will trigger no op fires.

- Koh
That is because "bailing" a crew is splitting the unit and creating a brand new crew object, which is not the same as the UnloadUnit code to drop pax who are an already extant game object. UnloadUnit has an opfire trigger, SplitUnit itself does not. (That bit of code to split units was originally hidden debug only code for developer testing, but we exposed it as a useful end user function)

Manually splitting a unit now has a subsequent call to the opfire trigger code called on the newly-generated crew unit (both games). Not added to the unit destruction code - as the firer was targeting the vehicle and the generation of a crew is an unintended by-product.

Andy
Reply With Quote
  #7  
Old December 1st, 2008, 11:52 AM

Koh Koh is offline
Corporal
 
Join Date: Apr 2008
Posts: 112
Thanks: 1
Thanked 10 Times in 7 Posts
Koh is on a distinguished road
Default Re: Bail out negates opfire

What about troops carried by the bailed out vehicle? When the vehicle is bailed out the troops get unloaded for free. Will they now trigger opfire as well?

- Koh
Reply With Quote
  #8  
Old December 1st, 2008, 03:00 PM
Mobhack's Avatar

Mobhack Mobhack is online now
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,988
Thanks: 482
Thanked 1,922 Times in 1,250 Posts
Mobhack is on a distinguished road
Default Re: Bail out negates opfire

Quote:
Originally Posted by Koh View Post
What about troops carried by the bailed out vehicle? When the vehicle is bailed out the troops get unloaded for free. Will they now trigger opfire as well?

- Koh
Unloading passengers is a completely different event from "bailing" (splitting) a crew, as stated above. Unloading passngers already had the opfire trigger, splitting did not.

Andy
Reply With Quote
  #9  
Old December 1st, 2008, 03:20 PM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,616
Thanks: 4,058
Thanked 5,815 Times in 2,869 Posts
DRG will become famous soon enough
Default Re: Bail out negates opfire

We'll get this sorted out so the passengers don't get a free ride on the unloading when the crew bails

Don
Reply With Quote
  #10  
Old December 4th, 2008, 05:19 PM
iCaMpWiThAWP's Avatar

iCaMpWiThAWP iCaMpWiThAWP is offline
First Lieutenant
 
Join Date: Sep 2008
Location: Brazil/France/Somewhere over the Atlantic
Posts: 660
Thanks: 21
Thanked 30 Times in 19 Posts
iCaMpWiThAWP is on a distinguished road
Default Re: Bail out negates opfire

Can i make the crew "voluntarily" bail out of a vehicle?Didnt knew that D:, how to?
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:43 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.