Black Cat Forums   Alien Swarm - Steampowered Forums
Alien Swarm 2K4 - ThieveryUT
Black Cat Games - TTLG Forums

Go Back   Black Cat Forums > Alien Swarm Forums > Alien Swarm SDK Discussion

Thread Tools
Old 2nd Aug 2010, 05:41 PM   #1
New Member
Registered: Jul 2010
Posts: 8
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 03:16 AM.
pnx is offline   Reply With Quote
Old 3rd Aug 2010, 09:09 PM   #2
Project Lead
Dalai's Avatar
Registered: May 2002
Posts: 2,369
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)
Dalai is offline   Reply With Quote
Old 4th Aug 2010, 01:10 AM   #3
New Member
Registered: Jul 2010
Posts: 8
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
pnx is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New weapons ? red_ Alien Swarm 2K4 Mapping 24 17th Mar 2006 09:46 AM
Weapons SpamSlayer Nightblade Discussion 36 16th Oct 2003 03:42 PM
new weapons Mr_Sneakies Thievery Discussion 2 11th May 2003 02:17 PM

All times are GMT -5. The time now is 09:47 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.