From e49810be8b2bdde6a1f4bc1264d42663c8518614 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Sun, 16 Jul 2023 22:47:01 -0700 Subject: [PATCH] Restructuring of monster/weapon entitydef files --- src/client/defs.h | 2 +- src/client/game_event.qc | 18 +- src/client/hud_sprite.qc | 5 +- zpak001.pk3dir/def/monsters.def | 39 ++- .../def/monsters/alien_controller.def | 0 ...onster_alien_grunt.def => alien_grunt.def} | 0 zpak001.pk3dir/def/monsters/alien_slave.def | 31 +++ zpak001.pk3dir/def/monsters/apache.def | 0 zpak001.pk3dir/def/monsters/babycrab.def | 0 zpak001.pk3dir/def/monsters/barnacle.def | 0 .../{monster_barney.def => barney.def} | 0 zpak001.pk3dir/def/monsters/barney_dead.def | 0 zpak001.pk3dir/def/monsters/bigmomma.def | 0 zpak001.pk3dir/def/monsters/bloater.def | 0 zpak001.pk3dir/def/monsters/bullchicken.def | 75 ++++++ zpak001.pk3dir/def/monsters/cockroach.def | 0 zpak001.pk3dir/def/monsters/flyer_flock.def | 0 zpak001.pk3dir/def/monsters/gargantua.def | 0 zpak001.pk3dir/def/monsters/gman.def | 15 ++ zpak001.pk3dir/def/monsters/headcrab.def | 26 ++ zpak001.pk3dir/def/monsters/hevsuit_dead.def | 0 zpak001.pk3dir/def/monsters/hgrunt_dead.def | 0 zpak001.pk3dir/def/monsters/houndeye.def | 20 ++ .../def/monsters/human_assassin.def | 0 ...onster_human_grunt.def => human_grunt.def} | 0 zpak001.pk3dir/def/monsters/ichthyosaur.def | 0 zpak001.pk3dir/def/monsters/leech.def | 0 zpak001.pk3dir/def/monsters/miniturret.def | 0 zpak001.pk3dir/def/monsters/nihilanth.def | 0 zpak001.pk3dir/def/monsters/osprey.def | 0 zpak001.pk3dir/def/monsters/rat.def | 0 .../{monster_scientist.def => scientist.def} | 0 .../def/monsters/scientist_dead.def | 0 zpak001.pk3dir/def/monsters/sentry.def | 0 .../def/monsters/sitting_scientist.def | 43 ++++ zpak001.pk3dir/def/monsters/tentacle.def | 0 zpak001.pk3dir/def/monsters/turret.def | 0 .../{monster_zombie.def => zombie.def} | 0 zpak001.pk3dir/def/weapons.def | 242 +----------------- zpak001.pk3dir/def/weapons/357.def | 19 ++ zpak001.pk3dir/def/weapons/9mmAR.def | 19 ++ zpak001.pk3dir/def/weapons/9mmhandgun.def | 19 ++ zpak001.pk3dir/def/weapons/crossbow.def | 14 + zpak001.pk3dir/def/weapons/crowbar.def | 14 + zpak001.pk3dir/def/weapons/egon.def | 14 + zpak001.pk3dir/def/weapons/gauss.def | 14 + zpak001.pk3dir/def/weapons/handgrenade.def | 14 + zpak001.pk3dir/def/weapons/hornetgun.def | 14 + zpak001.pk3dir/def/weapons/rpg.def | 14 + zpak001.pk3dir/def/weapons/satchel.def | 14 + zpak001.pk3dir/def/weapons/shotgun.def | 14 + zpak001.pk3dir/def/weapons/snark.def | 15 ++ zpak001.pk3dir/def/weapons/tripmine.def | 17 ++ zpak001.pk3dir/scripts/constants.txt | 16 ++ zpak001.pk3dir/sound/monsters_valve.sndshd | 4 + 55 files changed, 506 insertions(+), 245 deletions(-) create mode 100644 zpak001.pk3dir/def/monsters/alien_controller.def rename zpak001.pk3dir/def/monsters/{monster_alien_grunt.def => alien_grunt.def} (100%) create mode 100644 zpak001.pk3dir/def/monsters/alien_slave.def create mode 100644 zpak001.pk3dir/def/monsters/apache.def create mode 100644 zpak001.pk3dir/def/monsters/babycrab.def create mode 100644 zpak001.pk3dir/def/monsters/barnacle.def rename zpak001.pk3dir/def/monsters/{monster_barney.def => barney.def} (100%) create mode 100644 zpak001.pk3dir/def/monsters/barney_dead.def create mode 100644 zpak001.pk3dir/def/monsters/bigmomma.def create mode 100644 zpak001.pk3dir/def/monsters/bloater.def create mode 100644 zpak001.pk3dir/def/monsters/bullchicken.def create mode 100644 zpak001.pk3dir/def/monsters/cockroach.def create mode 100644 zpak001.pk3dir/def/monsters/flyer_flock.def create mode 100644 zpak001.pk3dir/def/monsters/gargantua.def create mode 100644 zpak001.pk3dir/def/monsters/gman.def create mode 100644 zpak001.pk3dir/def/monsters/headcrab.def create mode 100644 zpak001.pk3dir/def/monsters/hevsuit_dead.def create mode 100644 zpak001.pk3dir/def/monsters/hgrunt_dead.def create mode 100644 zpak001.pk3dir/def/monsters/houndeye.def create mode 100644 zpak001.pk3dir/def/monsters/human_assassin.def rename zpak001.pk3dir/def/monsters/{monster_human_grunt.def => human_grunt.def} (100%) create mode 100644 zpak001.pk3dir/def/monsters/ichthyosaur.def create mode 100644 zpak001.pk3dir/def/monsters/leech.def create mode 100644 zpak001.pk3dir/def/monsters/miniturret.def create mode 100644 zpak001.pk3dir/def/monsters/nihilanth.def create mode 100644 zpak001.pk3dir/def/monsters/osprey.def create mode 100644 zpak001.pk3dir/def/monsters/rat.def rename zpak001.pk3dir/def/monsters/{monster_scientist.def => scientist.def} (100%) create mode 100644 zpak001.pk3dir/def/monsters/scientist_dead.def create mode 100644 zpak001.pk3dir/def/monsters/sentry.def create mode 100644 zpak001.pk3dir/def/monsters/sitting_scientist.def create mode 100644 zpak001.pk3dir/def/monsters/tentacle.def create mode 100644 zpak001.pk3dir/def/monsters/turret.def rename zpak001.pk3dir/def/monsters/{monster_zombie.def => zombie.def} (100%) create mode 100644 zpak001.pk3dir/def/weapons/357.def create mode 100644 zpak001.pk3dir/def/weapons/9mmAR.def create mode 100644 zpak001.pk3dir/def/weapons/9mmhandgun.def create mode 100644 zpak001.pk3dir/def/weapons/crossbow.def create mode 100644 zpak001.pk3dir/def/weapons/crowbar.def create mode 100644 zpak001.pk3dir/def/weapons/egon.def create mode 100644 zpak001.pk3dir/def/weapons/gauss.def create mode 100644 zpak001.pk3dir/def/weapons/handgrenade.def create mode 100644 zpak001.pk3dir/def/weapons/hornetgun.def create mode 100644 zpak001.pk3dir/def/weapons/rpg.def create mode 100644 zpak001.pk3dir/def/weapons/satchel.def create mode 100644 zpak001.pk3dir/def/weapons/shotgun.def create mode 100644 zpak001.pk3dir/def/weapons/snark.def create mode 100644 zpak001.pk3dir/def/weapons/tripmine.def create mode 100644 zpak001.pk3dir/scripts/constants.txt diff --git a/src/client/defs.h b/src/client/defs.h index a355cb6..3429fc8 100644 --- a/src/client/defs.h +++ b/src/client/defs.h @@ -64,4 +64,4 @@ void HUD_DrawAmmo1(void); void HUD_DrawAmmo2(void); void HUD_DrawAmmo3(void); void HUD_DrawAmmoBar(vector pos, float val, float max, float a); -void HUD_WeaponPickupNotify(int); +void HUD_WeaponPickupNotify(int); \ No newline at end of file diff --git a/src/client/game_event.qc b/src/client/game_event.qc index 5c4c775..38d1204 100644 --- a/src/client/game_event.qc +++ b/src/client/game_event.qc @@ -35,11 +35,11 @@ ClientGame_EventParse(float fHeader) FX_Spark(vSparkPos, vSparkAngle); break; case EV_GIBHUMAN: - vector vGibPos; + vector vGibPos = g_vec_null; vGibPos[0] = readcoord(); vGibPos[1] = readcoord(); vGibPos[2] = readcoord(); - vector vDir; + vector vDir = g_vec_null; vDir[0] = readcoord(); vDir[1] = readcoord(); vDir[2] = readcoord(); @@ -47,11 +47,11 @@ ClientGame_EventParse(float fHeader) FX_GibHuman(vGibPos, vDir, flForce); break; case EV_GIBALIEN: - vector vGibPos2; + vector vGibPos2 = g_vec_null; vGibPos[0] = readcoord(); vGibPos[1] = readcoord(); vGibPos[2] = readcoord(); - vector vDir2; + vector vDir2 = g_vec_null; vDir[0] = readcoord(); vDir[1] = readcoord(); vDir[2] = readcoord(); @@ -59,8 +59,8 @@ ClientGame_EventParse(float fHeader) FX_GibAlien(vGibPos2, vDir2, flForce2); break; case EV_BLOOD: - vector vBloodPos; - vector vBloodColor; + vector vBloodPos = g_vec_null; + vector vBloodColor = g_vec_null; vBloodPos[0] = readcoord(); vBloodPos[1] = readcoord(); @@ -73,7 +73,7 @@ ClientGame_EventParse(float fHeader) FX_Blood(vBloodPos, vBloodColor); break; case EV_EXPLOSION: - vector vExploPos; + vector vExploPos = g_vec_null; vExploPos[0] = readcoord(); vExploPos[1] = readcoord(); @@ -82,12 +82,12 @@ ClientGame_EventParse(float fHeader) FX_Explosion(vExploPos); break; case EV_MODELGIB: - vector vecPos; + vector vecPos = g_vec_null; vecPos[0] = readcoord(); vecPos[1] = readcoord(); vecPos[2] = readcoord(); - vector vSize; + vector vSize = g_vec_null; vSize[0] = readcoord(); vSize[1] = readcoord(); vSize[2] = readcoord(); diff --git a/src/client/hud_sprite.qc b/src/client/hud_sprite.qc index b1a331d..6fc4e5a 100644 --- a/src/client/hud_sprite.qc +++ b/src/client/hud_sprite.qc @@ -32,6 +32,7 @@ HLSprite_Init(void) vector imgSize; int spriteCount = 0i; int i = 0i; + int c = 0i; string line; hudFile = fopen("sprites/hud.txt", FILE_READ); @@ -43,7 +44,7 @@ HLSprite_Init(void) /* count valid entries */ while ((line = fgets(hudFile))) { - int c = tokenize_console(line); + c = tokenize_console(line); if (c != 7) continue; @@ -70,7 +71,7 @@ HLSprite_Init(void) /* read the data into our banks */ while ((line = fgets(hudFile))) { - int c = tokenize_console(line); + c = tokenize_console(line); if (c != 7) continue; diff --git a/zpak001.pk3dir/def/monsters.def b/zpak001.pk3dir/def/monsters.def index 5c49b45..2ddb1fb 100644 --- a/zpak001.pk3dir/def/monsters.def +++ b/zpak001.pk3dir/def/monsters.def @@ -1,5 +1,34 @@ -include "monsters/monster_barney.def" -include "monsters/monster_human_grunt.def" -include "monsters/monster_zombie.def" -include "monsters/monster_scientist.def" -include "monsters/monster_alien_grunt.def" \ No newline at end of file +include "monsters/alien_controller.def" +include "monsters/alien_grunt.def" +include "monsters/alien_slave.def" +include "monsters/apache.def" +include "monsters/babycrab.def" +include "monsters/barnacle.def" +include "monsters/barney.def" +include "monsters/barney_dead.def" +include "monsters/bigmomma.def" +include "monsters/bloater.def" +include "monsters/bullchicken.def" +include "monsters/cockroach.def" +include "monsters/flyer_flock.def" +include "monsters/gargantua.def" +include "monsters/gman.def" +include "monsters/headcrab.def" +include "monsters/hevsuit_dead.def" +include "monsters/hgrunt_dead.def" +include "monsters/houndeye.def" +include "monsters/human_assassin.def" +include "monsters/human_grunt.def" +include "monsters/ichthyosaur.def" +include "monsters/leech.def" +include "monsters/miniturret.def" +include "monsters/nihilanth.def" +include "monsters/osprey.def" +include "monsters/rat.def" +include "monsters/scientist.def" +include "monsters/scientist_dead.def" +include "monsters/sentry.def" +include "monsters/sitting_scientist.def" +include "monsters/tentacle.def" +include "monsters/turret.def" +include "monsters/zombie.def" diff --git a/zpak001.pk3dir/def/monsters/alien_controller.def b/zpak001.pk3dir/def/monsters/alien_controller.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/monster_alien_grunt.def b/zpak001.pk3dir/def/monsters/alien_grunt.def similarity index 100% rename from zpak001.pk3dir/def/monsters/monster_alien_grunt.def rename to zpak001.pk3dir/def/monsters/alien_grunt.def diff --git a/zpak001.pk3dir/def/monsters/alien_slave.def b/zpak001.pk3dir/def/monsters/alien_slave.def new file mode 100644 index 0000000..39db8d2 --- /dev/null +++ b/zpak001.pk3dir/def/monsters/alien_slave.def @@ -0,0 +1,31 @@ +entityDef monster_alien_slave +{ + "spawnclass" "NSMonster" + "model" "models/islave.mdl" + "netname" "Vortigaunt" + "health" "skill:islave_health" + "mins" "-16 -16 0" + "maxs" "16 16 72" + "eye_height" "64" + "team" "2" + "propdata" "actor_alien" + "speed_walk" "72" + "speed_run" "72" + + "def_attack_melee" "melee_islave_claw" + "melee_range" "96" + "attack_ranged_range" "512" + + "snd_idle" "monster_alien_slave.idle" + "snd_pain" "monster_alien_slave.pain" + "snd_death" "monster_alien_slave.die" + "snd_thud" "monster_generic.thud" +} + +entityDef melee_islave_claw +{ + "damage" "skill:islave_dmg_claw" + "delay" "0.25f" + "wait" "0.5" + "attempts" "2" +} diff --git a/zpak001.pk3dir/def/monsters/apache.def b/zpak001.pk3dir/def/monsters/apache.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/babycrab.def b/zpak001.pk3dir/def/monsters/babycrab.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/barnacle.def b/zpak001.pk3dir/def/monsters/barnacle.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/monster_barney.def b/zpak001.pk3dir/def/monsters/barney.def similarity index 100% rename from zpak001.pk3dir/def/monsters/monster_barney.def rename to zpak001.pk3dir/def/monsters/barney.def diff --git a/zpak001.pk3dir/def/monsters/barney_dead.def b/zpak001.pk3dir/def/monsters/barney_dead.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/bigmomma.def b/zpak001.pk3dir/def/monsters/bigmomma.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/bloater.def b/zpak001.pk3dir/def/monsters/bloater.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/bullchicken.def b/zpak001.pk3dir/def/monsters/bullchicken.def new file mode 100644 index 0000000..4ebc4d5 --- /dev/null +++ b/zpak001.pk3dir/def/monsters/bullchicken.def @@ -0,0 +1,75 @@ +entityDef monster_bullchicken +{ + "spawnclass" "NSMonster" + "model" "models/bullsquid.mdl" + "netname" "Bullsquid" + "health" "skill:bullsquid_health" + "mins" "-16 -16 0" + "maxs" "16 16 72" + "eye_height" "32" + "team" "2" + "propdata" "actor_alien" + "speed_walk" "32" + "speed_run" "72" + + "attack_ranged_range" "512" + "attack_melee1_range" "86" // tailwhip + "attack_melee2_range" "86" // bite + "def_attack_melee" "melee_bullchicken_tailwhip" + "def_attack_melee2" "melee_bullchicken_bite" + + "snd_idle" "monster_bullchicken.idle" + "snd_pain" "monster_bullchicken.pain" + "snd_death" "monster_bullchicken.die" + + events { + 1 "SpawnProjectileDef" "ranged_bullchicken_spit" + 1 "StartSoundDef" "monster_bullchicken.attackshoot" + + 2 "StartSoundDef" "monster_bullchicken.attackbite" + + 3 "SetSkin" "1" + + 4 "StartSoundDef" "monster_bullchicken.attackwhip" + + 5 "SetVelocity" "0 0 256" + + 6 "StartSoundDef" "monster_bullchicken.attackthrow" + } +} + +entityDef melee_bullchicken_bite +{ + "damage" "skill:bullsquid_dmg_bite" + "delay" "0.25f" +} + + +entityDef melee_bullchicken_tailwhip +{ + "damage" "skill:bullsquid_dmg_whip" + "delay" "0.25f" +} + +entityDef ranged_bullchicken_spit +{ + "spawnclass" "NSProjectile" + "model" "sprites/bigspit.spr" + + "def_damage" "damage_spitDirect" + + "health" "0" + "velocity" "900" + "fuse" "10" + "detonate_on_fuse" "0" + "detonate_on_death" "0" + "detonate_on_world" "1" + "detonate_on_actor" "1" + "impact_damage_effect" "1" + "impact_gib" "0" +} + +entityDef damage_spitDirect +{ + damage "skill:bullsquid_dmg_spit" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters/cockroach.def b/zpak001.pk3dir/def/monsters/cockroach.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/flyer_flock.def b/zpak001.pk3dir/def/monsters/flyer_flock.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/gargantua.def b/zpak001.pk3dir/def/monsters/gargantua.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/gman.def b/zpak001.pk3dir/def/monsters/gman.def new file mode 100644 index 0000000..a31cfb1 --- /dev/null +++ b/zpak001.pk3dir/def/monsters/gman.def @@ -0,0 +1,15 @@ +entityDef monster_gman +{ + "spawnclass" "NSTalkMonster" + "model" "models/gman.mdl" + "netname" "G-Man" + "health" "0" + "mins" "-16 -16 0" + "maxs" "16 16 72" + "eye_height" "64" + "team" "0" + "propdata" "actor_human" + + "speed_walk" "64" + "speed_run" "364" // day one only +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters/headcrab.def b/zpak001.pk3dir/def/monsters/headcrab.def new file mode 100644 index 0000000..32f24fe --- /dev/null +++ b/zpak001.pk3dir/def/monsters/headcrab.def @@ -0,0 +1,26 @@ +entityDef monster_headcrab +{ + "spawnclass" "NSMonster" + "model" "models/headcrab.mdl" + "netname" "Headcrab" + "health" "skill:headcrab_health" + "mins" "-16 -16 0" + "maxs" "16 16 72" + "eye_height" "12" + "team" "2" + "propdata" "actor_alien" + "speed_walk" "32" + "speed_run" "72" + + "attack_ranged_range" "180" // needs launch attack + + "snd_idle" "monster_headcrab.idle" + "snd_pain" "monster_headcrab.pain" + "snd_death" "monster_headcrab.death" + + events { + jump "AddVelocity" "512 0 250" + jump_variation1 "AddVelocity" "512 0 250" + jump_variation2 "AddVelocity" "512 0 250" + } +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters/hevsuit_dead.def b/zpak001.pk3dir/def/monsters/hevsuit_dead.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/hgrunt_dead.def b/zpak001.pk3dir/def/monsters/hgrunt_dead.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/houndeye.def b/zpak001.pk3dir/def/monsters/houndeye.def new file mode 100644 index 0000000..3431a2f --- /dev/null +++ b/zpak001.pk3dir/def/monsters/houndeye.def @@ -0,0 +1,20 @@ +entityDef monster_houndeye +{ + "spawnclass" "NSMonster" + "model" "models/houndeye.mdl" + "netname" "Houndeye" + "health" "skill:houndeye_health" + "mins" "-16 -16 0" + "maxs" "16 16 72" + "eye_height" "32" + "team" "2" + "propdata" "actor_alien" + "speed_walk" "32" + "speed_run" "72" + + "attack_ranged_range" "192" + + "snd_idle" "monster_houndeye.idle" + "snd_pain" "monster_houndeye.pain" + "snd_death" "monster_houndeye.death" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters/human_assassin.def b/zpak001.pk3dir/def/monsters/human_assassin.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/monster_human_grunt.def b/zpak001.pk3dir/def/monsters/human_grunt.def similarity index 100% rename from zpak001.pk3dir/def/monsters/monster_human_grunt.def rename to zpak001.pk3dir/def/monsters/human_grunt.def diff --git a/zpak001.pk3dir/def/monsters/ichthyosaur.def b/zpak001.pk3dir/def/monsters/ichthyosaur.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/leech.def b/zpak001.pk3dir/def/monsters/leech.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/miniturret.def b/zpak001.pk3dir/def/monsters/miniturret.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/nihilanth.def b/zpak001.pk3dir/def/monsters/nihilanth.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/osprey.def b/zpak001.pk3dir/def/monsters/osprey.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/rat.def b/zpak001.pk3dir/def/monsters/rat.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/monster_scientist.def b/zpak001.pk3dir/def/monsters/scientist.def similarity index 100% rename from zpak001.pk3dir/def/monsters/monster_scientist.def rename to zpak001.pk3dir/def/monsters/scientist.def diff --git a/zpak001.pk3dir/def/monsters/scientist_dead.def b/zpak001.pk3dir/def/monsters/scientist_dead.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/sentry.def b/zpak001.pk3dir/def/monsters/sentry.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/sitting_scientist.def b/zpak001.pk3dir/def/monsters/sitting_scientist.def new file mode 100644 index 0000000..58a1607 --- /dev/null +++ b/zpak001.pk3dir/def/monsters/sitting_scientist.def @@ -0,0 +1,43 @@ +entityDef monster_sitting_scientist +{ + "spawnclass" "NSTalkMonster" + "model" "models/scientist.mdl" + "netname" "Scientist" + "health" "50" + "mins" "-16 -16 0" + "maxs" "16 16 72" + "eye_height" "64" + "team" "0" + "propdata" "actor_human" + + when "body" equals "1" { + "pitch" "105" + "netname" "Walter" + "body1" "1" + } + + when "body" equals "2" { + "pitch" "100" + "netname" "Einstein" + "body1" "2" + } + + when "body" equals "3" { + "pitch" "95" + "netname" "Luther" + "skin" "1" + "body1" "3" + } + + when "body" equals "4" { + "pitch" "105" + "netname" "Slick" + "body1" "4" + } + + "talk_ask" "" + "talk_player_ask" "!SC_PQUEST" + "talk_player_greet" "!SC_PHELLO" + "talk_player_idle" "!SC_PIDLE" + "follow_on_use" "0" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters/tentacle.def b/zpak001.pk3dir/def/monsters/tentacle.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/turret.def b/zpak001.pk3dir/def/monsters/turret.def new file mode 100644 index 0000000..e69de29 diff --git a/zpak001.pk3dir/def/monsters/monster_zombie.def b/zpak001.pk3dir/def/monsters/zombie.def similarity index 100% rename from zpak001.pk3dir/def/monsters/monster_zombie.def rename to zpak001.pk3dir/def/monsters/zombie.def diff --git a/zpak001.pk3dir/def/weapons.def b/zpak001.pk3dir/def/weapons.def index 6e6d12f..65414d4 100644 --- a/zpak001.pk3dir/def/weapons.def +++ b/zpak001.pk3dir/def/weapons.def @@ -1,228 +1,14 @@ -entityDef weapon_357 -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" ".367 Revolver" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_357.mdl" - "inv_item" "3" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_python -{ - "spawnclass" "weapon_357" -} - -entityDef weapon_9mmAR -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "9mm AR" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_9mmAR.mdl" - "inv_item" "4" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_mp5 -{ - "spawnclass" "weapon_9mmAR" -} - -entityDef weapon_9mmhandgun -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "9mm Handgun" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_9mmhandgun.mdl" - "inv_item" "2" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_glock -{ - "spawnclass" "weapon_9mmhandgun" -} - -entityDef weapon_crossbow -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "Crossbow" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_crossbow.mdl" - "inv_item" "6" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_crowbar -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "Crowbar" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_crowbar.mdl" - "inv_item" "1" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_egon -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "Gluon Gun" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_egon.mdl" - "inv_item" "9" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_gauss -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "Tau Cannon" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_gauss.mdl" - "inv_item" "8" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_handgrenade -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "Hand Grenade" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_grenade.mdl" - "inv_item" "11" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_hornetgun -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "Hornet Gun" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_hgun.mdl" - "inv_item" "10" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_rpg -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "Rocket Launcher" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_rpg.mdl" - "inv_item" "7" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_satchel -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "Satchel" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_satchel.mdl" - "inv_item" "12" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_shotgun -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "Shotgun" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_shotgun.mdl" - "inv_item" "5" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_snark -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "Snark" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/w_sqknest.mdl" - "frame" "1" - "inv_item" "14" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} - -entityDef weapon_tripmine -{ - "editor_color" ".3 .3 1" - "editor_mins" "-16 -16 -16" - "editor_maxs" "16 16 16" - "editor_usage" "Tripmine" - "editor_rotatable" "1" - - "spawnclass" "NSItem" - "model" "models/v_tripmine.mdl" - "body0" "2" - "body1" "2" - "frame" "8" - "inv_item" "13" - "snd_acquire" "weapon.pickup" - "snd_respawn" "item.respawn" -} \ No newline at end of file +include "weapons/357.def" +include "weapons/9mmAR.def" +include "weapons/9mmhandgun.def" +include "weapons/crossbow.def" +include "weapons/crowbar.def" +include "weapons/egon.def" +include "weapons/gauss.def" +include "weapons/handgrenade.def" +include "weapons/hornetgun.def" +include "weapons/rpg.def" +include "weapons/satchel.def" +include "weapons/shotgun.def" +include "weapons/snark.def" +include "weapons/tripmine.def" diff --git a/zpak001.pk3dir/def/weapons/357.def b/zpak001.pk3dir/def/weapons/357.def new file mode 100644 index 0000000..a07fb57 --- /dev/null +++ b/zpak001.pk3dir/def/weapons/357.def @@ -0,0 +1,19 @@ +entityDef weapon_357 +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" ".367 Revolver" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_357.mdl" + "inv_item" "$WEAPON_PYTHON" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} + +entityDef weapon_python +{ + "spawnclass" "weapon_357" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/9mmAR.def b/zpak001.pk3dir/def/weapons/9mmAR.def new file mode 100644 index 0000000..8ab6737 --- /dev/null +++ b/zpak001.pk3dir/def/weapons/9mmAR.def @@ -0,0 +1,19 @@ +entityDef weapon_9mmAR +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "9mm AR" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_9mmAR.mdl" + "inv_item" "$WEAPON_MP5" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} + +entityDef weapon_mp5 +{ + "spawnclass" "weapon_9mmAR" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/9mmhandgun.def b/zpak001.pk3dir/def/weapons/9mmhandgun.def new file mode 100644 index 0000000..490dbbb --- /dev/null +++ b/zpak001.pk3dir/def/weapons/9mmhandgun.def @@ -0,0 +1,19 @@ +entityDef weapon_9mmhandgun +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "9mm Handgun" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_9mmhandgun.mdl" + "inv_item" "$WEAPON_GLOCK" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} + +entityDef weapon_glock +{ + "spawnclass" "weapon_9mmhandgun" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/crossbow.def b/zpak001.pk3dir/def/weapons/crossbow.def new file mode 100644 index 0000000..bd6adbd --- /dev/null +++ b/zpak001.pk3dir/def/weapons/crossbow.def @@ -0,0 +1,14 @@ +entityDef weapon_crossbow +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Crossbow" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_crossbow.mdl" + "inv_item" "$WEAPON_CROSSBOW" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/crowbar.def b/zpak001.pk3dir/def/weapons/crowbar.def new file mode 100644 index 0000000..d848624 --- /dev/null +++ b/zpak001.pk3dir/def/weapons/crowbar.def @@ -0,0 +1,14 @@ +entityDef weapon_crowbar +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Crowbar" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_crowbar.mdl" + "inv_item" "$WEAPON_CROWBAR" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/egon.def b/zpak001.pk3dir/def/weapons/egon.def new file mode 100644 index 0000000..c319a9a --- /dev/null +++ b/zpak001.pk3dir/def/weapons/egon.def @@ -0,0 +1,14 @@ +entityDef weapon_egon +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Gluon Gun" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_egon.mdl" + "inv_item" "$WEAPON_EGON" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/gauss.def b/zpak001.pk3dir/def/weapons/gauss.def new file mode 100644 index 0000000..0fabf16 --- /dev/null +++ b/zpak001.pk3dir/def/weapons/gauss.def @@ -0,0 +1,14 @@ +entityDef weapon_gauss +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Tau Cannon" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_gauss.mdl" + "inv_item" "$WEAPON_GAUSS" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/handgrenade.def b/zpak001.pk3dir/def/weapons/handgrenade.def new file mode 100644 index 0000000..2718ace --- /dev/null +++ b/zpak001.pk3dir/def/weapons/handgrenade.def @@ -0,0 +1,14 @@ +entityDef weapon_handgrenade +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Hand Grenade" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_grenade.mdl" + "inv_item" "$WEAPON_HANDGRENADE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/hornetgun.def b/zpak001.pk3dir/def/weapons/hornetgun.def new file mode 100644 index 0000000..8647bc3 --- /dev/null +++ b/zpak001.pk3dir/def/weapons/hornetgun.def @@ -0,0 +1,14 @@ +entityDef weapon_hornetgun +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Hornet Gun" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_hgun.mdl" + "inv_item" "$WEAPON_HORNETGUN" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/rpg.def b/zpak001.pk3dir/def/weapons/rpg.def new file mode 100644 index 0000000..f25e1af --- /dev/null +++ b/zpak001.pk3dir/def/weapons/rpg.def @@ -0,0 +1,14 @@ +entityDef weapon_rpg +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Rocket Launcher" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_rpg.mdl" + "inv_item" "$WEAPON_RPG" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/satchel.def b/zpak001.pk3dir/def/weapons/satchel.def new file mode 100644 index 0000000..487b3e1 --- /dev/null +++ b/zpak001.pk3dir/def/weapons/satchel.def @@ -0,0 +1,14 @@ +entityDef weapon_satchel +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Satchel" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_satchel.mdl" + "inv_item" "$WEAPON_SATCHEL" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/shotgun.def b/zpak001.pk3dir/def/weapons/shotgun.def new file mode 100644 index 0000000..2bcf1f1 --- /dev/null +++ b/zpak001.pk3dir/def/weapons/shotgun.def @@ -0,0 +1,14 @@ +entityDef weapon_shotgun +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Shotgun" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_shotgun.mdl" + "inv_item" "$WEAPON_SHOTGUN" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/snark.def b/zpak001.pk3dir/def/weapons/snark.def new file mode 100644 index 0000000..fb4bf40 --- /dev/null +++ b/zpak001.pk3dir/def/weapons/snark.def @@ -0,0 +1,15 @@ +entityDef weapon_snark +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Snark" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_sqknest.mdl" + "frame" "1" + "inv_item" "$WEAPON_SNARK" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/tripmine.def b/zpak001.pk3dir/def/weapons/tripmine.def new file mode 100644 index 0000000..f0790be --- /dev/null +++ b/zpak001.pk3dir/def/weapons/tripmine.def @@ -0,0 +1,17 @@ +entityDef weapon_tripmine +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Tripmine" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/v_tripmine.mdl" + "body0" "2" + "body1" "2" + "frame" "8" + "inv_item" "$WEAPON_TRIPMINE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/scripts/constants.txt b/zpak001.pk3dir/scripts/constants.txt new file mode 100644 index 0000000..4afcd2c --- /dev/null +++ b/zpak001.pk3dir/scripts/constants.txt @@ -0,0 +1,16 @@ +// weapon constants +WEAPON_NONE 0 +WEAPON_CROWBAR 1 +WEAPON_GLOCK 2 +WEAPON_PYTHON 3 +WEAPON_MP5 4 +WEAPON_SHOTGUN 5 +WEAPON_CROSSBOW 6 +WEAPON_RPG 7 +WEAPON_GAUSS 8 +WEAPON_EGON 9 +WEAPON_HORNETGUN 10 +WEAPON_HANDGRENADE 11 +WEAPON_SATCHEL 12 +WEAPON_TRIPMINE 13 +WEAPON_SNARK 14 \ No newline at end of file diff --git a/zpak001.pk3dir/sound/monsters_valve.sndshd b/zpak001.pk3dir/sound/monsters_valve.sndshd index 9a12c4d..db92a38 100644 --- a/zpak001.pk3dir/sound/monsters_valve.sndshd +++ b/zpak001.pk3dir/sound/monsters_valve.sndshd @@ -218,6 +218,10 @@ monster_bullchicken.attack monster_bullchicken.attackbite { sample bullchicken/bc_bite1.wav +} + +monster_bullchicken.attackthrow +{ sample bullchicken/bc_bite2.wav sample bullchicken/bc_bite3.wav }