1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

RealCS ammo types.

Discussion in 'Discussion' started by ZeroPie, Apr 3, 2013.

  1. So I am pretty sure I am not the only one, but regarding the RealCS weapons:
    The ammo types for the different weapons doesn't make any sense at all, so I thought I'd try and change it myself, however I am not very good with LUA so I might need a little help on this.
    For example the FN P90 uses Crossbow Bolts as ammunition, wich doesn't make sense.
    Now this wouldn't be a problem if the Crossbow Bolt ammo item gave more than 12 rounds.

    There are a few weapons that have the correct ammo types according to their type of weapon. (Assault Rifle, SMG, Pistol etc.)
    But how would I fix this? I had a look into the weapons item file, and what I would see is the ITEM scripts, but I find no ITEM script that tells me what ammo it uses.
    So I'm wondering can I somehow add a script to change it to "pistol", "SMG1" or "buckshot" for example?
     
  2. TJjokerR

    TJjokerR Formerly known as TJjokerR

    The weapons ammo type is defined in the SWEP, not the item script. Change it there, it will be named SWEP.Primary.Ammo or SWEP.Secondary.Ammo, depending on what you are changing.
     
  3. Alright, where can I find the SWEP file in the server's files?
     
  4. The files come with the SWEP.
     
  5. Clockwork plugins/ realcs / weapon / weapon name / shared.lua

    I think that's right, currently on my phone.
     

Previous Readers (Total: 0)