View Single Post
Old 01-05-2005, 08:07 PM   #10 (permalink)
AntiSocialKindaGuy
Senior Member
 
Join Date: Jul 2004
Location: London, UK
Posts: 376
Send a message via MSN to AntiSocialKindaGuy
Default

Hmm this is odd. I can't get the crate to appear. The OCL creating the thing is fine, because if I use 1000DollarCrate it spawns quite happily and I get the cash. If I change the offset, it appears.

However, with my crate, if I change the offset it simply doesn't appear, and its not granting the upgrade :\

Here is my crate code:

Code:
Object GasMaskCrate

  ; *** ART Parameters ***
  Draw = W3DScienceModelDraw ModuleTag_01
    DefaultConditionState
      Model = PMJnkCrate
    End
  End

  ; ***DESIGN parameters ***
  EditorSorting   = MISC_MAN_MADE

  ; *** ENGINEERING Parameters ***  
  KindOf = PARACHUTABLE SELECTABLE ;Only Salvage crates are marked Selectable so the Mouse can interact with them and give Salvage voices.  Being dead makes them not actually selectable
  
  Behavior = SalvageCrateCollide ModuleTag_02
    ForbiddenKindOf = PROJECTILE
    ;ExecuteFX = FX_CratePickup    ; FXList to play when sucessfully picked up

    WeaponChance = 100%           ; If we are WeaponSalvager, this is the chance we get a WeaponSet upgrade if not fully upgraded
    LevelChance = 25%             ; Either we are just a regular Salvager, or we are fully upgraded.  This is the chance we gain a level
    MoneyChance = 75%             ; And this is the chance we get money.  Level + Money = 100%.  Weapon is an idependant FirstChance
    MinMoney = 25                 ; If we get money, this is how much we get.  Make them different to get a random range.
    MaxMoney = 75
  End      

  Behavior = DeletionUpdate ModuleTag_03 ; Not LifetimeUpdate, since I can't die.  This will DestroyObject me. 
    MinLifetime = 30000   
    MaxLifetime = 35000   
  End

  Geometry = BOX
  GeometryMajorRadius = 12.0
  GeometryMinorRadius = 12.0
  GeometryHeight = 12.0     
  GeometryIsSmall = Yes    
  Shadow          = SHADOW_VOLUME

End
AntiSocialKindaGuy is offline   Reply With Quote