Welcome, Guest. Please login or register.
Did you miss your activation email?
September 20, 2024, 02:59:13 AM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Adding the Tranquilizer Gun
Pages: [1]
Author Topic: Adding the Tranquilizer Gun  (Read 5606 times)
Raserisk
Poster

Posts: 12


« on: August 02, 2010, 09:41:45 PM »

At the moment I'm trying to incorporate the Tranquilizer Gun into the Detective's equipment armory for the Cozworld server. It was simple enough getting it in, however I am having two issues.

#1- It has unlimited ammo which I don't want, yet changed but still refuses to work.

#2 - I need to make it where the Perma sleep option is disabled, we only want this to be a 10 second or less sleep duration.

http://pastebin.com/rmTrX0RY

That's the script. Thanks!
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #1 on: August 02, 2010, 10:03:25 PM »

I'll take a look at that when I get home.
IPhone ATM.

Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it.
Charles445
Build Tester
*
Posts: 2338


I LOVE THIS AVATAR


« Reply #2 on: August 02, 2010, 10:18:04 PM »

Tell me how much ammo you want it to have.

Oh wait, you provided that.

I'll be done soon.

EDIT: Kapow
http://pastebin.com/GY4r3gyp
« Last Edit: August 02, 2010, 10:45:50 PM by Charles445 »

del>Ok, so Bad King, you are just going to wait for Garry to fix?
What an idiotic thing to ask. Dammit weed.

Bookcases, Bookcases Everywhere
Raserisk
Poster

Posts: 12


« Reply #3 on: August 02, 2010, 11:43:09 PM »

Dude your're amazing. How did you do it?!?!
Charles445
Build Tester
*
Posts: 2338


I LOVE THIS AVATAR


« Reply #4 on: August 03, 2010, 03:12:31 AM »

I added a settime value instead of the client switchable one so it lasts 10 seconds.
I added a printname so you can see the weapon's name.
I added a ClipMax value to make sure there were no clip problems.
I made the primary fire check to see if it COULD fire, then take away a bullet. I also network sent the last shoot time.
I rearranged the primary fire so sounds don't get played when it doesn't fire, etc.
I removed the reload button from it so you can't switch it to permanent.
I made the tranquilizer stun for whatever the settime was.
I added a Slot and Slotpos so you can switch to it, got rid of the Ammo type and added its category (TTT).

del>Ok, so Bad King, you are just going to wait for Garry to fix?
What an idiotic thing to ask. Dammit weed.

Bookcases, Bookcases Everywhere
Raserisk
Poster

Posts: 12


« Reply #5 on: August 03, 2010, 03:56:24 AM »

O_o well I'm glad you took the time to help me out, I wouldn't have a clue how to change all that.
Charles445
Build Tester
*
Posts: 2338


I LOVE THIS AVATAR


« Reply #6 on: August 03, 2010, 05:17:58 AM »

O_o well I'm glad you took the time to help me out, I wouldn't have a clue how to change all that.

If you ever need more done, just post here.

del>Ok, so Bad King, you are just going to wait for Garry to fix?
What an idiotic thing to ask. Dammit weed.

Bookcases, Bookcases Everywhere
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Adding the Tranquilizer Gun « 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.01 seconds with 18 queries.