forked from Arizard/deathrun
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 72df050
Showing
10 changed files
with
237 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include( 'shared.lua' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
|
||
} |