Welcome to Tactical Gamer

+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 27
Discussion: Battlefield 2 / Battlefield 2 - Map & Mod Development - Locking a team out of a vehicle - There is an object property called TeamOnVehicle that has a rumor to the effect that
  1. #1

    asch's Avatar

    Join Date
    Oct 2003
    Location
    Lake Wylie, SC
    Age
    36
    Posts
    11,578

    Locking a team out of a vehicle

    There is an object property called TeamOnVehicle that has a rumor to the effect that if this property is set to a specific team, then only that team can use that object.

    Can anyone verify this?

    I'm interested to see if we can server-side mod this so that certain vehicles (i.e. aircraft) cannot be taken by the enemy.

  2.  
  3. #2

    icky's Avatar

    Join Date
    Jul 2005
    Location
    Ottawa Valley
    Posts
    6,152

    Re: Locking a team out of a vehicle

    Interesting. I saw this property and thought is was to do with the team symbol being shown on the side of things like UAV and Radar. I will check it out tonight!
    Peace through fear... since 1947!

  4.  
  5. #3

    asch's Avatar

    Join Date
    Oct 2003
    Location
    Lake Wylie, SC
    Age
    36
    Posts
    11,578

    Re: Locking a team out of a vehicle

    Quote Originally Posted by icky
    Interesting. I saw this property and thought is was to do with the team symbol being shown on the side of things like UAV and Radar. I will check it out tonight!
    That property is required for the UAV/Arty/Radar. This restricts the other team from using it. However, I've never tested it with standard vehicles.

  6.  

     
  7. #4

    Dark Viper's Avatar

    Join Date
    Aug 2005
    Location
    Oklahoma City, OK
    Age
    26
    Posts
    812

    Re: Locking a team out of a vehicle

    I would consider the Essex defensive guns to be vehicles. The US can get into those but the opfor can't. Maybe check the game coding on those.
    |TG-33rd|Dark_Viper



    I thought I wanted a career, turns out I just wanted paychecks.

  8.  
  9. #5

    asch's Avatar

    Join Date
    Oct 2003
    Location
    Lake Wylie, SC
    Age
    36
    Posts
    11,578

    Re: Locking a team out of a vehicle

    Ok, I confirmed that this does indeed lock the vehicles. However, I took a look at the stock maps and could not find the file that we would want to edit.

    On my custom map, there is a file \MyLevel\Editor\GamePlayObjects.con that contains the following code...

    rem [ObjectSpawnerTemplate: 64_MEC_OS_Storage_Hanger_ME_US_LightJeep]
    ObjectTemplate.create ObjectSpawner 64_MEC_OS_Storage_Hanger_ME_US_LightJeep
    ObjectTemplate.activeSafe ObjectSpawner 64_MEC_OS_Storage_Hanger_ME_US_LightJeep
    ObjectTemplate.modifiedByUser "Craig Aschbrenner"
    ObjectTemplate.isNotSaveable 1
    ObjectTemplate.hasMobilePhysics 0
    ObjectTemplate.setObjectTemplate 1 JEP_PARATROOPER
    ObjectTemplate.minSpawnDelay 120
    ObjectTemplate.maxSpawnDelay 300
    ObjectTemplate.TimeToLive 300
    ObjectTemplate.Distance 120
    ObjectTemplate.team 1
    ObjectTemplate.teamOnVehicle 1
    However, I was not able to find this file for the stock maps.

    So my question is how would we set this teamOnVehicle value to 1 for aircraft on the stock maps?

  10.  
  11. #6


    Join Date
    Jul 2005
    Posts
    1,355

    Re: Locking a team out of a vehicle

    Quote Originally Posted by asch
    So my question is how would we set this teamOnVehicle value to 1 for aircraft on the stock maps?
    Might it be a good idea to set this on armor (tank, APC, mobile AA) as well? I would imagine that in real life it wouldn't be so easy to jump in a different model armor and immediately start using it effectively. While with light vehicles (jeep, van, etc.) it's reasonable to think that anyone could hop in and use it.

    I'm not fully confident that this is a good idea, just wanted to throw it out for discussion.

  12.  

     
  13. #7

    Santa's Avatar

    Join Date
    Jul 2005
    Age
    22
    Posts
    3,353

    Re: Locking a team out of a vehicle

    Quote Originally Posted by SgtDuke
    Might it be a good idea to set this on armor (tank, APC, mobile AA) as well? I would imagine that in real life it wouldn't be so easy to jump in a different model armor and immediately start using it effectively. While with light vehicles (jeep, van, etc.) it's reasonable to think that anyone could hop in and use it.

    I'm not fully confident that this is a good idea, just wanted to throw it out for discussion.
    I think this is a good idea for the airplanes, but for armor it seems that when attacking its very important to try to steal the enemy's armor. If they refuse to use it, well then ill definatly use it. If we make it impossible for the enemy to steal armor, it makes defenses easier because they dont have to always have someone in their armor.

  14.  
  15. #8

    Pickle's Avatar

    Join Date
    Aug 2005
    Location
    Land of Fruit and Nuts!
    Age
    39
    Posts
    1,281

    Re: Locking a team out of a vehicle

    Please help a computer ignorant person like myself.

    Would this mod, assuming it is implemented, prevent me (USMC) from hopping in an MEC vehicle after I have successfully converted the flag? i.e. the vehicle was there before I capped the flag.
    "Umm Deputy these aren't my pants" - Common alarm cry of the North American Crackhead
    [tg-c1][ma-c1][defense]

  16.  
  17. #9

    icky's Avatar

    Join Date
    Jul 2005
    Location
    Ottawa Valley
    Posts
    6,152

    Re: Locking a team out of a vehicle

    Quote Originally Posted by Dark Viper
    I would consider the Essex defensive guns to be vehicles. The US can get into those but the opfor can't. Maybe check the game coding on those.
    Excellent tip! Yes, that is exactly what is used for the carrier guns.

    Asch, check your old PM's from me for the location of that file in the stock maps.


    rem [ObjectSpawnerTemplate: CPNAME_DP_64_uscarrier_Defence_Back]
    ObjectTemplate.create ObjectSpawner CPNAME_DP_64_uscarrier_Defence_Back
    ObjectTemplate.activeSafe ObjectSpawner CPNAME_DP_64_uscarrier_Defence_Back
    ObjectTemplate.modifiedByUser nla
    ObjectTemplate.isNotSaveable 1
    ObjectTemplate.hasMobilePhysics 0
    ObjectTemplate.setObjectTemplate 1 wasp_defence_back
    ObjectTemplate.setObjectTemplate 2 wasp_defence_back
    ObjectTemplate.teamOnVehicle 1
    Peace through fear... since 1947!

  18.  

     
  19. #10

    asch's Avatar

    Join Date
    Oct 2003
    Location
    Lake Wylie, SC
    Age
    36
    Posts
    11,578

    Re: Locking a team out of a vehicle

    Quote Originally Posted by SgtDuke
    Might it be a good idea to set this on armor (tank, APC, mobile AA) as well? I would imagine that in real life it wouldn't be so easy to jump in a different model armor and immediately start using it effectively. While with light vehicles (jeep, van, etc.) it's reasonable to think that anyone could hop in and use it.

    I'm not fully confident that this is a good idea, just wanted to throw it out for discussion.
    It's possible to set any objectspawn to work only for one team, however doing so with land vehicles would greatly limit the use of vehicles. What would happen is once a team caps a flag, they would not be able to gain access to the vehicle. They would have to destroy it and wait for a respawn.

  20.  
  21. #11

    asch's Avatar

    Join Date
    Oct 2003
    Location
    Lake Wylie, SC
    Age
    36
    Posts
    11,578

    Re: Locking a team out of a vehicle

    Quote Originally Posted by Pickle
    Please help a computer ignorant person like myself.

    Would this mod, assuming it is implemented, prevent me (USMC) from hopping in an MEC vehicle after I have successfully converted the flag? i.e. the vehicle was there before I capped the flag.
    That is true. The vehicle would have to be destroyed and you would have to wait for your version of the vehicle to spawn. This is one of the main reasons to restrict it to most aircraft.

  22.  
  23. #12

    asch's Avatar

    Join Date
    Oct 2003
    Location
    Lake Wylie, SC
    Age
    36
    Posts
    11,578

    Re: Locking a team out of a vehicle

    Quote Originally Posted by icky
    Excellent tip! Yes, that is exactly what is used for the carrier guns.

    Asch, check your old PM's from me for the location of that file in the stock maps.
    Found it! Thanks!

  24.  

     
  25. #13


    Join Date
    Jul 2005
    Posts
    1,355

    Re: Locking a team out of a vehicle

    Quote Originally Posted by asch
    What would happen is once a team caps a flag, they would not be able to gain access to the vehicle. They would have to destroy it and wait for a respawn.
    I think this might be better than enemy armor camping. The fundamental problem I have is that team vehicles constantly spawn out of thin air whether you want them to or not. I'd rather you had to walk up to an area where a team vehicle would spawn and then indicate that you would like the vehicle to spawn and it would automatically put you in it. But I doubt it's possible for us to achieve something like that with the current modding capabilities.

  26.  
  27. #14

    asch's Avatar

    Join Date
    Oct 2003
    Location
    Lake Wylie, SC
    Age
    36
    Posts
    11,578

    Re: Locking a team out of a vehicle

    Quote Originally Posted by SgtDuke
    I think this might be better than enemy armor camping. The fundamental problem I have is that team vehicles constantly spawn out of thin air whether you want them to or not. I'd rather you had to walk up to an area where a team vehicle would spawn and then indicate that you would like the vehicle to spawn and it would automatically put you in it. But I doubt it's possible for us to achieve something like that with the current modding capabilities.
    One thing that can be done is to increase the spawn time for vehicles. In my custom maps I make vehicles critical to keep alive and used properly. A vehicle may take five minutes to respawn.

    I believe the current setting on most stock maps is less than one minute.

  28.  
  29. #15

    icky's Avatar

    Join Date
    Jul 2005
    Location
    Ottawa Valley
    Posts
    6,152

    Re: Locking a team out of a vehicle

    Default is 20-40 seconds, I believe. Most vehicles use the default and will respawn almost as quickly as the player who was in them.
    Peace through fear... since 1947!

  30.  

     

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


  
 

Back to top