Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Arizard committed Jun 28, 2015
0 parents commit 72df050
Show file tree
Hide file tree
Showing 10 changed files with 237 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Arizard's Deathrun

This is a little project I'm working on every now and then because I'm sick of the current deathrun gamemode being used. This gamemode will feature button claiming, map starts+ends, statistics and analytics and more custom features which should be standard for deathrun. Also the interface will be slightly nicer.
21 changes: 21 additions & 0 deletions deathrun.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"Gamemode"
{
"base" "base"
"title" "Deathrun"
"maps" "^deathrun"
"menusystem" "1"
"workshopid" ""

"settings"
{
1
{
"name" "deathrun"
"version" "2.0"
"help" "Arizard's Deathrun"
"type" "numeric"
"default" "1"
}
}

}
24 changes: 24 additions & 0 deletions entities/effects/empty_effect/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

/*---------------------------------------------------------
Init
- Initialize the effect
---------------------------------------------------------*/
function EFFECT:Init( data )

end


/*---------------------------------------------------------
Think
- Returning false removes the effect.
---------------------------------------------------------*/
function EFFECT:Think( )
return false
end

/*---------------------------------------------------------
Render
- Draw the effect
---------------------------------------------------------*/
function EFFECT:Render()
end
22 changes: 22 additions & 0 deletions entities/entities/empty_entity/shared.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

ENT.Type = "anim"
ENT.Base = "base_entity"

ENT.PrintName = ""
ENT.Author = ""
ENT.Contact = ""

ENT.Spawnable = false
ENT.AdminSpawnable = false
ENT.RenderGroup = RENDERGROUP_OPAQUE

AddCSLuaFile( "shared.lua" )

/*---------------------------------------------------------
Name: Initialize
---------------------------------------------------------*/
function ENT:Initialize()

Msg( "Empty Entity Initialized (Remove this line!)\n" )

end
112 changes: 112 additions & 0 deletions entities/weapons/weapon_dr_pistol/shared.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@

AddCSLuaFile( "shared.lua" )

SWEP.PrintName = "Deagle"

SWEP.Author = "Arizard"
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = ""

SWEP.ViewModelFOV = 40
SWEP.ViewModelFlip = false
SWEP.ViewModel = "models/weapons/cstrike/c_pist_deagle.mdl"
SWEP.WorldModel = "models/weapons/w_pist_deagle.mdl"
SWEP.AnimPrefix = "python"
SWEP.UseHands = true

SWEP.Spawnable = false
SWEP.AdminSpawnable = false

SWEP.Primary.ClipSize = 7 // Size of a clip
SWEP.Primary.DefaultClip = 999999999 // Default number of bullets in a clip
SWEP.Primary.Automatic = false // Automatic/Semi Auto
SWEP.Primary.Ammo = "Pistol"

SWEP.Secondary.ClipSize = -1 // Size of a clip
SWEP.Secondary.DefaultClip = -1 // Default number of bullets in a clip
SWEP.Secondary.Automatic = false // Automatic/Semi Auto
SWEP.Secondary.Ammo = "Pistol"

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

end


/*---------------------------------------------------------
Reload
---------------------------------------------------------*/
function SWEP:Reload()
self:DefaultReload( ACT_VM_RELOAD );
end


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

if CLIENT then return false end

if self.Owner:KeyDown( IN_ATTACK ) then
local tr = self.Owner:GetEyeTrace()
if tr.Entity then
if IsValid( tr.Entity ) then
if tr.Entity:GetKeyValues().classname == "func_button" then
tr.Entity:TakeDamage( 1337, self.Owner, self)
end
end
end
end

end

local zmod = 0

function SWEP:CalcViewModelView( vm, opos, oang, pos, ang )

if ScoreboardVisible == false then
zmod = zmod + 0.07
else
zmod = zmod - 0.09
end

if zmod > 0 then zmod = 0 end
if zmod < -10 then zmod = -10 end

return pos + ang:Right()*-2 + Vector(0,0,zmod), ang + Angle(0,0,0)

end


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

// Make sure we can shoot first
if ( !self:CanPrimaryAttack() ) then return end

// Play shoot sound
self:EmitSound(Sound( "Weapon_Deagle.Single" ), 50)

// Shoot 9 bullets, 150 damage, 0.01 aimcone
self:ShootBullet( 150, 1, 0.01 )

// Remove 1 bullet from our clip
self:TakePrimaryAmmo( 1 )

// Punch the player's view
self.Owner:ViewPunch( Angle( -0.5, 0, 0 ) )

end

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

end
1 change: 1 addition & 0 deletions gamemode/cl_init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include( 'shared.lua' )
12 changes: 12 additions & 0 deletions gamemode/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )

include( 'shared.lua' )


function GM:PlayerLoadout( ply )

ply:Give("weapon_crowbar")

end
12 changes: 12 additions & 0 deletions gamemode/shared.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

GM.Name = "Deathrun"
GM.Author = "Arizard"
GM.Email = ""
GM.Website = "arizard.github.io"

function GM:Initialize()

self.BaseClass.Initialize( self )

end

9 changes: 9 additions & 0 deletions hooks.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
List of hooks and functionality for them for Arizard's bhop gamemode
-------------------------------------

SERVER:

SHARED:

CLIENT:

21 changes: 21 additions & 0 deletions info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"Gamemode"
{
"base" "base"
"title" "Deathrun"
"maps" "^deathrun"
"menusystem" "1"
"workshopid" ""

"settings"
{
1
{
"name" "deathrun"
"version" "1.0"
"help" "Arizard's Deathrun"
"type" "numeric"
"default" "1"
}
}

}

0 comments on commit 72df050

Please sign in to comment.