Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 11:31:38 PM
Home Help Login Register
News: Zombie Master 2 discussion

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Adding new weapons
Pages: [1]
Author Topic: Adding new weapons  (Read 3932 times)
PurpleHaze
Poster

Posts: 10


« on: August 30, 2010, 11:50:01 PM »

Ok. Sorry for the questions Hopefully this is the last one.

I want to know how do i add weapons that have there own LUA code in it.

Also how do i change the sound on a weapon? I dont understand it and couldn't find the sound.
Manmax75
Poster

Posts: 254


Programming Guy


« Reply #1 on: August 31, 2010, 06:00:33 AM »

theres a tut on ttt.badking.net on how to do it, also its lua not LUA and as for the sound I'll see if I can find it for you cause I can't remember it of the top of my head

Ride Forward and Thrust Your Pelvis In The Dark Void. The One Induced By Pleasure Yet Cast By The Bigger Picture.
PurpleHaze
Poster

Posts: 10


« Reply #2 on: August 31, 2010, 12:23:28 PM »

You dont understand what i am saying.
Sam
Poster

Posts: 22



« Reply #3 on: August 31, 2010, 12:35:09 PM »

Add weapon scripts to garrysmod/gamemodes/terrortown/entities/weapons/weapon_ttt_<weaponname>/shared.lua

It will be automatically detected and should work as long as the script is correct. To edit the sound files in the lua script, look for a file path with the extension .mp3 or .wav and change the value within the quotes.

http://www.steamcommunity.com/id/samm5506
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Adding new weapons « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.011 seconds with 18 queries.