Results 1 to 3 of 3

Thread: Use own weapons

  1. #1
    New Member
    Jul 2010

    Use own weapons

    Hey there.
    I've spend the whole day trying to get custom weapons work:
    this is the way i tried:

    I wanted to just double an existing weapon, in this case the sniper rifle:

    I've created an *.cpp and*.h file similar to the normal sniper, but with the names of almost every variable changed to the new sniper.
    I added a custom Script file with information about the new sniper.
    I added a row in the equipment ressource.

    When i compile and run, join an offline game and select weapons, i can see my new sniper there and i also can see the model and the 2dpreview image.
    But when i start and actually am ingame, my hands are empty.
    Its not that only the model is missing, its like i've got no weapon where i chose my custome one.
    What and where do i have to add in the sourcecode to get it work?

    And i wonder where i can find the weapon descriptions.
    In the scrips/ [...] .txt is only a cast to #asw_weapon[...]attributes but i just cant find the actual text and stuff
    thanks, pnx!
    Last edited by pnx; 3rd Aug 2010 at 04:16 AM.

  2. #2
    Project Lead Dalai's Avatar
    May 2002
    Any errors in the console?

    Does creating the entity directly work? (at the console do: asw_ent_create asw_weapon_whatever and it should appear under you cursor)

  3. #3
    New Member
    Jul 2010
    Attempted to create unknown entity type asw_weapon_velosnipe!

    so yeah the entity creation failes. what do i have to do to make my weapon a new entity

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. New weapons ?
    By red_ in forum Alien Swarm 2K4 Mapping
    Replies: 24
    Last Post: 17th Mar 2006, 10:46 AM
  2. Weapons
    By SpamSlayer in forum Nightblade Discussion
    Replies: 36
    Last Post: 16th Oct 2003, 04:42 PM
  3. new weapons
    By Mr_Sneakies in forum Thievery Discussion
    Replies: 2
    Last Post: 11th May 2003, 03:17 PM

Posting Permissions

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