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

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Jihad Bomb?
Pages: [1]
Author Topic: Jihad Bomb?  (Read 9991 times)
D4nny
Poster

Posts: 7


« on: August 05, 2010, 08:30:13 PM »

Okay Guys So i was looking about and i put togather this Jihad bomb...
It doesnt work cause when i try giving myself it this happens:
Attempted to create unknown entity type weapon_ttt_jihad!
NULL Ent in GiveNamedItem!

Help?
Is the Script Totaly Wrong?
Or is it a small mistake i made if so can u correct it For me Or Something Cheers.


-- traitor equipment: Jihad Bomb

if SERVER then
  AddCSLuaFile( "shared.lua" )
end

SWEP.HoldType = "slam"

if CLIENT then
  SWEP.PrintName = "Jihad Bomb"
  SWEP.Instructions = "Ka-Boom"
  SWEP.Slot = 6
  SWEP.SlotPos = 0
  SWEP.IconLetter = "j"

  SWEP.EquipMenuData = {
     type="Weapon",
     model="models/weapons/w_jb.mdl",
     name="Jihad",
     desc="Powerful explosive./nScream at your Enemies xD."
  };

  SWEP.Icon = "VGUI/ttt/icon_jihad"
end

SWEP.Base = "weapon_tttbase"

SWEP.Kind = WEAPON_EQUIP
SWEP.CanBuy = {ROLE_TRAITOR} -- only traitors can buy
SWEP.WeaponID = WEAPON_NONE

SWEP.Spawnable          = false
SWEP.AdminSpawnable     = false
SWEP.ViewModel          = "models/weapons/v_jb.mdl"
SWEP.WorldModel         = "models/weapons/w_jb.mdl" --W
SWEP.Weight         = 50
SWEP.AutoSwitchTo       = false
SWEP.AutoSwitchFrom     = false
SWEP.DrawCrosshair      = false
SWEP.ViewModelFlip      = false
SWEP.Primary.ClipSize       = -1
SWEP.Primary.DefaultClip    = -1
SWEP.Primary.Automatic      = true
SWEP.Primary.Ammo       = "none"
SWEP.Primary.Delay = 2

SWEP.Secondary.ClipSize     = -1
SWEP.Secondary.DefaultClip  = -1
SWEP.Secondary.Automatic    = true
SWEP.Secondary.Ammo     = "none"
SWEP.Secondary.Delay = 2

SWEP.NoSights = true

Reload does nothing
---------------------------------------------------------*/
function SWEP:Reload()
end

function SWEP:Initialize()
   util.PrecacheSound("siege/big_explosion.wav")
   util.PrecacheSound("siege/jihad.wav")
end


/*---------------------------------------------------------
  Think does nothing
---------------------------------------------------------*/
function SWEP:Think()
end


/*---------------------------------------------------------
PrimaryAttack
---------------------------------------------------------*/
function SWEP:PrimaryAttack()
self.Weapon:SetNextPrimaryFire(CurTime() + 3)


local effectdata = EffectData()
effectdata:SetOrigin( self.Owner:GetPos() )
effectdata:SetNormal( self.Owner:GetPos() )
effectdata:SetMagnitude( 8 )
effectdata:SetScale( 1 )
effectdata:SetRadius( 16 )
util.Effect( "Sparks", effectdata )

self.BaseClass.ShootEffects( self )


// The rest is only done on the server
if (SERVER) then
timer.Simple(2, function() self:Asplode() end )
self.Owner:EmitSound( "siege/jihad.wav" )
end

end

--The asplode function
function SWEP:Asplode()
local k, v

// Make an explosion at your position
local ent = ents.Create( "env_explosion" )
ent:SetPos( self.Owner:GetPos() )
ent:SetOwner( self.Owner )
ent:Spawn()
ent:SetKeyValue( "iMagnitude", "250" )
ent:Fire( "Explode", 0, 0 )
ent:EmitSound( "siege/big_explosion.wav", 500, 500 )

self.Owner:Kill( )
self.Owner:AddFrags( -1 )

for k, v in pairs( player.GetAll( ) ) do
 v:ConCommand( "play siege/big_explosion.wav\n" )
end

end


/*---------------------------------------------------------
SecondaryAttack
---------------------------------------------------------*/
function SWEP:SecondaryAttack()

self.Weapon:SetNextSecondaryFire( CurTime() + 1 )

local TauntSound = Sound( "vo/npc/male01/overhere01.wav" )

self.Weapon:EmitSound( TauntSound )

// The rest is only done on the server
if (!SERVER) then return end

self.Weapon:EmitSound( TauntSound )


 end

end
manbearpig101
Poster

Posts: 11


« Reply #1 on: August 05, 2010, 08:49:25 PM »

Check for compile-time errors. If there are none, make sure you placed this in the correct folder.
DemiGod
Build Tester
*
Posts: 1289


Nimble as a pregnant cow


« Reply #2 on: August 05, 2010, 09:05:02 PM »

Okay Guys So i was looking about and i put togather this Jihad bomb...

There's where you went wrong

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

Posts: 11


« Reply #3 on: August 05, 2010, 09:33:28 PM »

There's where you went wrong


DemiGod, you have said that two times. It was funny the first time, if he needs help and you are going to just make a smart ass remark, don't talk at all.
Ajunk
Build Tester
*
Posts: 14000


ಠ_ಠ


« Reply #4 on: August 05, 2010, 09:45:47 PM »

The Jihad Bomb is literally the worst thing ever added to TTT. It takes all the sociality, lying, sneakiness, stealth, and planning, and fucks it in the ass with a rake. And not the nobbly end! It takes TTT and turns it into Suicide Survival.

Innocents and detectives trying to discover the traitor? Traitors trying to conceal their identity? No need, as you can simply blow yourself up!

Trying to survive as an innocent by watching people carefully and staying in plain sight? No need, as anyone can simply walk up to you and kill you without anything you can do! (Except, of course, ruin the game by hiding in a little building and shooting anyone who comes near).


Worst add-on ever. EVER.

You're all the most fucking heartless people
Kologer0s
Poster

Posts: 48


« Reply #5 on: August 05, 2010, 09:46:35 PM »

There's where you went wrong


This never gets old with jihad bombs :P

http://bit.ly/Mogzcom MOGZ Gmod TTT + Killing Floor Servers
DemiGod
Build Tester
*
Posts: 1289


Nimble as a pregnant cow


« Reply #6 on: August 05, 2010, 10:20:29 PM »

DemiGod, you have said that two times. It was funny the first time, if he needs help and you are going to just make a smart ass remark, don't talk at all.

You think this is a joke? This is a very serious issue.
« Last Edit: August 05, 2010, 10:24:03 PM by DemiGod »

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

Posts: 3456


Volcano junkie.


« Reply #7 on: August 05, 2010, 10:34:55 PM »

No need, as anyone can simply walk up to you and kill you without anything you can do!


Exactly like the knife, except the knife is silent and doesn't require suicide to use.

The problem with the Jihad Bomb isn't the mechanic itself, it's how the mechanic can affect large groups at once.
DemiGod
Build Tester
*
Posts: 1289


Nimble as a pregnant cow


« Reply #8 on: August 05, 2010, 10:39:29 PM »

it's how the mechanic can affect large groups at once.

So it's pretty much just an instant C4

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

Posts: 48


« Reply #9 on: August 05, 2010, 11:44:12 PM »

That has no way to be stopped :( But oh wait, the carrier still dies!!!! That balances everything. Let's also make an instant nuke, but for balance , it has to kill 2 traitors - not one!

http://bit.ly/Mogzcom MOGZ Gmod TTT + Killing Floor Servers
Chrik
Poster

Posts: 36

Owner Of SLAGaming.net Community


« Reply #10 on: August 05, 2010, 11:48:14 PM »

Dont forget to give 100% discount for the nuke. (A innocent equipment!).

But back to topic.

Danny. Jihad bombs are very unfair unless they gets balanec PRETTY much.
If you want to make one, make it yourself.

TTT #1: 109.70.148.68:27015
TTT #2: 109.70.148.68:27018

TTT servers with a Hats/Models Shop, achievements, highscores and more!
Kologer0s
Poster

Posts: 48


« Reply #11 on: August 06, 2010, 02:13:48 PM »

What if they were made to spread the users current health+15 each since he dies to nearby people?

Like if he had 80 hp and used the bomb with 2 people nearby they get 55 dmg each, but if it was 1 person he gets 95 dmg
« Last Edit: August 06, 2010, 02:15:00 PM by Kologer0s »

http://bit.ly/Mogzcom MOGZ Gmod TTT + Killing Floor Servers
D4nny
Poster

Posts: 7


« Reply #12 on: August 06, 2010, 02:56:17 PM »

Im trying to Make 1. Ive kind made 1 but it isnt working and i need some help.
Where did i go wrong?
Joest
Build Tester
*
Posts: 10501


ZM's Resident Furfag


« Reply #13 on: August 06, 2010, 03:00:27 PM »

The Jihad Bomb is literally the worst thing ever added to TTT. It takes all the sociality, lying, sneakiness, stealth, and planning, and fucks it in the ass with a rake. And not the nobbly end! It takes TTT and turns it into Suicide Survival.

Innocents and detectives trying to discover the traitor? Traitors trying to conceal their identity? No need, as you can simply blow yourself up!

Trying to survive as an innocent by watching people carefully and staying in plain sight? No need, as anyone can simply walk up to you and kill you without anything you can do! (Except, of course, ruin the game by hiding in a little building and shooting anyone who comes near).

Worst add-on ever. EVER.
I agree with ajunk. This doesn't require the amount of skill to use and it fucks with the point of the game mode. The point of the game is to pick off people one by one while concealing your identity. This takes that concept and burns it.

I love cats. My cat ambushed me when I got out of the shower and attacked my dick.
Meta-Stick
Poster

Posts: 481


it contains, a daisy box


« Reply #14 on: August 06, 2010, 03:07:59 PM »

Anyone asking for a jihad, to butcher this game mode, is obviously going to get no help here. People assume it's a item to keep others from grouping up. It's not our fault people can be so bad at the game as to let everyone get comfortable enough to group up. If people were good traitors they'd prevent that in a huge number of possible ways. I personally charge at them with an explosive barrel screaming random names. Others choose to do it their own way, whilst some just can't. The Jihad however is not a solution other than to destroy all that is sacred to TTT.

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

Posts: 7


« Reply #15 on: August 06, 2010, 03:13:44 PM »

It isnt for me anyway atmo my friend wants it but i want to be able to create 1, So then i know i can and try doing different Items.
Ajunk
Build Tester
*
Posts: 14000


ಠ_ಠ


« Reply #16 on: August 06, 2010, 03:28:40 PM »

Just... don't.

You're all the most fucking heartless people
D4nny
Poster

Posts: 7


« Reply #17 on: August 06, 2010, 07:17:43 PM »

But i wont to
Soduka
Poster

Posts: 680



« Reply #18 on: August 06, 2010, 07:18:07 PM »

Good, you wont to.
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Jihad Bomb? « 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.