Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
November 22, 2024, 01:03:05 PM
News:
Trouble in Terrorist Town
?
Site here
,
forum here
.
Zombie Master
|
Other
|
Trouble in Terrorist Town
| Topic:
Weapon Questions.
Pages: [
1
]
Author
Topic: Weapon Questions. (Read 3573 times)
llamalords
Poster
Posts: 23
«
on:
April 26, 2010, 05:24:45 AM »
How would I go about making my custom weapons spawn with random weapon spawns and/or with there own spawn point?
Bad King Urgrain
Administrator
Posts: 12276
«
Reply #1 on:
April 26, 2010, 08:13:06 AM »
Your SWEP will spawn as random weapon automatically if:
- it is not a WEAPON_EQUIP type
- it sets SWEP.AutoSpawnable = true
I will make sure to document this for the next version. I'm also planning some bugfixes and improvements related to custom weapons.
As for their own spawn point, you can simply add an entity with the appropriate classname to the map in Hammer. You could also manually edit the rearm scripts for maps to replace some of the existing entries with your custom weapon. It is possible to use the Weapon Placer tool as well, but you'd have to add the weapon manually to the tool's code.
«
Last Edit: April 26, 2010, 08:17:32 AM by Bad King Urgrain
»
llamalords
Poster
Posts: 23
«
Reply #2 on:
April 27, 2010, 12:05:24 AM »
Thank you! :D
llamalords
Poster
Posts: 23
«
Reply #3 on:
April 27, 2010, 04:00:57 AM »
I realized that the Flare gun doesn't and/or doesn't appear in the Traitor's shop.
Bad King Urgrain
Administrator
Posts: 12276
«
Reply #4 on:
April 27, 2010, 07:42:26 AM »
I'm not sure what you mean. The Flare gun won't spawn as random weapon, but is definitely in the traitor equipment store for me.
Will_Kill
Poster
Posts: 15
«
Reply #5 on:
April 27, 2010, 07:28:15 PM »
Quote from: llamalords on April 27, 2010, 04:00:57 AM
I realized that the Flare gun doesn't and/or doesn't appear in the Traitor's shop.
Did you mess with the shared.lua in weapons_ttt_flaregun?
Pages
: [
1
]
Zombie Master
|
Other
|
Trouble in Terrorist Town
| Topic:
Weapon Questions.
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Other
-----------------------------
=> Trouble in Terrorist Town
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Powered by SMF 1.1.21
|
SMF © 2015, Simple Machines
Page created in 0.01 seconds with 17 queries.
Loading...