Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2024, 04:50:24 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Stop a weapon from dropping.
Pages: [1]
Author Topic: Stop a weapon from dropping.  (Read 8068 times)
wolfxero
Poster

Posts: 5


« on: August 03, 2010, 02:36:23 PM »

I'm making a jihad bomb for a TTT server I work on and the jihad bomb I have drops after use. I'm looking for a way to have the ability to drop the bomb if it's in inventory, but not if it's used.
DemiGod
Build Tester
*
Posts: 1289


Nimble as a pregnant cow


« Reply #1 on: August 03, 2010, 05:11:14 PM »

I'm making a jihad bomb

Found your problem

I hate all of you
Nah, more like demigod isn't self centered and he is legality cool guy.
Charles445
Build Tester
*
Posts: 2338


I LOVE THIS AVATAR


« Reply #2 on: August 03, 2010, 05:45:22 PM »

SWEP.AllowDrop = true

function SWEP:ShouldDropOnDie()
  return false
end

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
Kologer0s
Poster

Posts: 48


« Reply #3 on: August 04, 2010, 01:21:25 AM »

I'm making a jihad bomb for a TTT server

Found your problem

http://bit.ly/Mogzcom MOGZ Gmod TTT + Killing Floor Servers
Tannerbondy
ZM2 Developer
*****
Posts: 7547



« Reply #4 on: August 04, 2010, 01:25:48 AM »

What's the appeal of the jihad bomb anyways?
CrazyChicken
Poster

Posts: 604


Beep Beep Boop


« Reply #5 on: August 04, 2010, 02:32:54 AM »

What's the appeal of the jihad bomb anyways?


Being able to ruin the game very quickly.

Most Neutral Poster
Release: ZM_BlackMesa1, TTT_Bank, TTT_Backalley
All my maps start with "B" hmm...
wolfxero
Poster

Posts: 5


« Reply #6 on: August 04, 2010, 10:10:43 AM »

SWEP.AllowDrop = true

function SWEP:ShouldDropOnDie()
  return false
end


Still drops when it's used.
catbarf
Poster

Posts: 3456


Volcano junkie.


« Reply #7 on: August 05, 2010, 01:19:09 AM »

What's the appeal of the jihad bomb anyways?


It's the same instant death mechanic of the knife, except it can kill 4+ people at once. It also flies in the face of the other traitor items, which are less 'Blow you up in your face' and more 'Kill you quietly and sneakily', or at least 'Kill you loudly and explosively with a quietly and sneakily placed item'.
« Last Edit: August 05, 2010, 01:20:14 AM by catbarf »
NaPStone2
Poster

Posts: 165


I AM UNORGINAL SO I USE THIS GIF


« Reply #8 on: August 05, 2010, 04:12:54 PM »

Thing with the jihad is, Yes you can kill 4+ people at once. But, you have to kill yourself.

maybe u shud w8
then stream got time 4 ur rqest later
and u downlad
DemiGod
Build Tester
*
Posts: 1289


Nimble as a pregnant cow


« Reply #9 on: August 05, 2010, 05:22:35 PM »

Yes you can kill 4+ people at once. But, you have to kill yourself.

Don't honestly tell me you think that that is balanced

I hate all of you
Nah, more like demigod isn't self centered and he is legality cool guy.
Meta-Stick
Poster

Posts: 481


it contains, a daisy box


« Reply #10 on: August 06, 2010, 07:28:48 AM »

Clearly it is.

Just grab some bottles and stick them in girls...
NaPStone2
Poster

Posts: 165


I AM UNORGINAL SO I USE THIS GIF


« Reply #11 on: August 08, 2010, 11:39:26 PM »

Lets say you get 4+ people into a small enough area to be able to kill them all.
Chances are as soon as you start jihading, they will kill you.
and now your dead and nobody else is.

maybe u shud w8
then stream got time 4 ur rqest later
and u downlad
Polishhotdog
Poster

Posts: 18


« Reply #12 on: August 08, 2010, 11:58:44 PM »

I'm having the same problem on my server as well. The bomb drops on death and people can pick it up and reuse it. It's very annoying.

I've also added the this line into the Shared.lua file but it still dropped on death

SWEP.AllowDrop = true

function SWEP:ShouldDropOnDie()
  return false
end
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #13 on: August 09, 2010, 01:30:39 AM »

SWEP.AllowDrop = false

imbeciles can't read logically.

Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it.
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #14 on: August 09, 2010, 08:27:13 AM »

SWEP.AllowDrop = false

function SWEP:OnDrop()
self:Remove()
end
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Stop a weapon from dropping. « 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.012 seconds with 17 queries.