DVAR help

Discussion in 'Call of Duty: Black Ops 1 Scripts' started by BlackOpsModder, Jun 17, 2018.

  1. BlackOpsModder

    BlackOpsModder Known Member

    42
    12
    128
    Credits:
    254
    Hello I need help with a dvar, basicly I need a DVAR that i can able/unable to the box give me a certain weapon, example this dvar makes the box unmovable and than movable:
    bind 3 "magic_chest_movable 0"
    bind 4 "magic_chest_movable 1"
    i need one that activate that the only weapon that the box can give me in the tgun and one that can make the box normal again being able to give me all the weapons that it could bring as normal.
    Im willing to make a donation off 10 dollars gift card from amazon if it works perfectly.
     
  2. Christien

    Christien Well-Known Member

    113
    72
    228
    Credits:
    498
    I assume this is for PC correct?
     
  3. BlackOpsModder

    BlackOpsModder Known Member

    42
    12
    128
    Credits:
    254
    Yes Its for PC!
     
    CabCon likes this.
  4. IM x MoDzz

    IM x MoDzz Known Member Staff Member

    31
    36
    128
    Credits:
    354
    Why not just do give "weaponnamehere", I don't think you can set the box to give you a set weapon.
     
  5. BlackOpsModder

    BlackOpsModder Known Member

    42
    12
    128
    Credits:
    254
    Because I want the weapon to pop from the box, not using this command.
     
  6. vampytwist

    vampytwist "Don't you trust me?" Staff Member

    530
    507
    308
    Credits:
    8,150
    There Isn't a dvar that allows you to select a specific weapon to appear in the box first. It would needed to be handled though GSC.

    You could still make a bind to give you a specific weapon in the box only but it would still require some gsc, and you would need to be host for it to work.
     
    Last edited: Jun 17, 2018
    CabCon, IM x MoDzz and BlackOpsModder like this.
  7. BlackOpsModder

    BlackOpsModder Known Member

    42
    12
    128
    Credits:
    254
    That is nice! Could you help me with that?

    CabCon has a thread with all .gsc, I could make a donation if it works 100% properly like I want!
    But I want the binds in number 8 to activate and 9 to deactivate, I also dont want any notifications when active or inactive.
     
  8. BlackOpsModder

    BlackOpsModder Known Member

    42
    12
    128
    Credits:
    254
    Im willing to give a 15 dollar amazon gift card!
     
  9. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,041
    2,632
    403
    Credits:
    182,723
    @BlackOpsModder I worked on exactly this a few years ago and it is possible. There is an array with the possible weapons in it. Also you can modify the random function for the magic box to change the probabilities of each weapon.

    Unfortunately I'm not able to find the function anymore. Checked everything... :confused:
     
    BlackOpsModder likes this.
  10. BlackOpsModder

    BlackOpsModder Known Member

    42
    12
    128
    Credits:
    254
    Oh man, mif u searched more I would be so gratefull I can pay 25 dollars in a amazon gift card, I really need it!
     
    CabCon likes this.
  11. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,041
    2,632
    403
    Credits:
    182,723
    I'll take a look into it again. :smile:
     
    BlackOpsModder likes this.
  12. BlackOpsModder

    BlackOpsModder Known Member

    42
    12
    128
    Credits:
    254
    Thanks mate!
     
    CabCon likes this.
  13. BlackOpsModder

    BlackOpsModder Known Member

    42
    12
    128
    Credits:
    254
  14. amand

    amand New Member

    8
    4
    3
    Credits:
    173
    hello people if you want to go watch my post i did all the infections bo1 you can take the dvars that are in the cfg file.

    Please login or register to view links or downloads!
     

Share This Page