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

  Show Posts
Pages: [1]
1  Other / Trouble in Terrorist Town / Re: Jihad Bomb? on: August 06, 2010, 07:17:43 PM
But i wont to
2  Other / Trouble in Terrorist Town / Re: Jihad Bomb? 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.
3  Other / Trouble in Terrorist Town / Re: Jihad Bomb? 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?
4  Other / Trouble in Terrorist Town / Jihad Bomb? 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
5  Other / Trouble in Terrorist Town / Re: Fake Body on: August 05, 2010, 02:30:14 PM
How about Jihad Bombs?
Ive been looking into it but cant find shit its annoying...
6  Other / Trouble in Terrorist Town / Fake Body on: August 03, 2010, 03:18:07 PM
hey guys,
im wondering how to you make a custom weapon
which is like a dead body on the floor which is fake and when you press E you lose Some Damage or something can someone make 1 for me or give me a hand?

  Cheers
 
        --D4nny--
7  Other / Trouble in Terrorist Town / Custom Weapons? on: July 03, 2010, 04:40:14 PM
What files do you need to edit to make custom weapons work?


Cheers


  Danny xD

P.S. Dont have a clue how to add them so need a bit of help :(
Pages: [1]


Login with username, password and session length

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