Results 1 to 9 of 9

Thread: New weapons

  1. #1
    Developer
    Join Date
    Jun 2010
    Location
    Hungary
    Posts
    291

    Default New weapons

    I think many modders wanted to place new weapons on their servers and i know the usable names for viewmodelanims are programmed in the engine. It would be nice a script command like "viewmodeltype" or something. For example the modder write this in the weapon.tik "viewmodeltype ppsh" and the game will know that it have to use for _idle, fire, reload etc viewmodelanims to the PPSH weapon.

    I dont know if it's possible server or client side.

  2. #2
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    I'd need more information about the whole system and how it works and what limits modders so if you or anyone else could write something more about it I would be glad.

  3. #3
    Developer
    Join Date
    Jun 2010
    Location
    Hungary
    Posts
    291

    Default

    If you are in first person as usual, the viewmodel animations (idle, fire, reload, rechamber etc.) are played by the script command "viewmodelanim" in mike_torso. The original weapons name has a reference to the viewmodel things in the engine (cgamex86.dll). For example "M1 Garand"->viewmodelanim name garand, Springfield '03 Sniper->springfield etc. So if a weapon has the name M1 Garand, the game know that it have to use for viewmodelanims the garand prefix (garand_idle, garand_fire etc.)

    Any question?

  4. #4
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    Ok, I get it. We'll see what I can do.

  5. #5
    Banned
    Join Date
    May 2010
    Location
    fuck off?
    Posts
    1,145

    Default

    that's a good idea,

    It would of made creating all the EXTRA weapons on Predator easier,

    how I did it: You can find ones that are not used, camera, binoculars , canon, flare gun, etc.

    but fantastic idea

  6. #6

    Default

    what, you can use the flare gun in game?
    i just love this weapon that was planned to be in mohaa, it's my avatar^^

  7. #7

    Default

    Well OMG Veers likes his extra weapons have seen the new base assault 2 beta very cool!!!! Val you wont be needing that on BA'2 )))

  8. #8
    Banned
    Join Date
    May 2010
    Location
    fuck off?
    Posts
    1,145

    Default

    flare gun is not fully implemented but quite easily fixed and made usable.

  9. #9
    Developer
    Join Date
    Jun 2010
    Location
    Hungary
    Posts
    291

    Default

    And i would like to ask something. Is it in plan to make commands what can define the inventory list?

    For example:

    Code:
    local.weaponlist = local.player getweaponlist or getinventorylist
    local.weapontype = local.weaponlist[1] getweapontype (rifle, smg...)
    local.ammoinclip = local.weaponlist[1] getammoinclip
    local.ammo = local.weaponlist[1] getammostock
    etc...
    Maybe there are still usable commands.

Posting Permissions

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