Add entityDefs for the weapon pickups in the game

This commit is contained in:
Marco Cawthorne 2023-05-27 13:02:08 -07:00
parent d3759b4d83
commit e57b138438
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
34 changed files with 362 additions and 91 deletions

View File

@ -366,12 +366,3 @@ weapon_t w_displacer =
.hudpic = w_displacer_hudpic,
.isempty = w_displacer_isempty
};
/* entity definitions for pickups */
#ifdef SERVER
void
weapon_displacer(void)
{
Weapons_InitItem(WEAPON_DISPLACER);
}
#endif

View File

@ -378,12 +378,4 @@ weapon_t w_eagle =
.aimanim = w_eagle_aimanim,
.hudpic = w_eagle_hudpic,
.isempty = w_eagle_isempty
};
#ifdef SERVER
void
weapon_eagle(void)
{
Weapons_InitItem(WEAPON_EAGLE);
}
#endif
};

View File

@ -300,13 +300,4 @@ weapon_t w_grapple =
.deathmsg = w_grapple_deathmsg,
.aimanim = w_grapple_aimanim,
.hudpic = w_grapple_hudpic
};
/* entity definitions for pickups */
#ifdef SERVER
void
weapon_grapple(void)
{
Weapons_InitItem(WEAPON_GRAPPLE);
}
#endif
};

View File

@ -263,12 +263,3 @@ weapon_t w_knife =
.aimanim = w_knife_aimanim,
.hudpic = w_knife_hudpic
};
/* entity definitions for pickups */
#ifdef SERVER
void
weapon_knife(void)
{
Weapons_InitItem(WEAPON_KNIFE);
}
#endif

View File

@ -330,11 +330,3 @@ weapon_t w_m249 =
.hudpic = w_m249_hudpic,
.isempty = w_m249_isempty
};
#ifdef SERVER
void
weapon_m249(void)
{
Weapons_InitItem(WEAPON_M249);
}
#endif

View File

@ -352,12 +352,4 @@ weapon_t w_penguin =
.deathmsg = w_penguin_deathmsg,
.aimanim = w_penguin_aimanim,
.hudpic = w_penguin_hudpic
};
#ifdef SERVER
void
weapon_penguin(void)
{
Weapons_InitItem(WEAPON_PENGUIN);
}
#endif
};

View File

@ -335,13 +335,4 @@ weapon_t w_pipewrench =
.deathmsg = w_pipewrench_deathmsg,
.aimanim = w_pipewrench_aimanim,
.hudpic = w_pipewrench_hudpic
};
/* entity definitions for pickups */
#ifdef SERVER
void
weapon_pipewrench(void)
{
Weapons_InitItem(WEAPON_PIPEWRENCH);
}
#endif
};

View File

@ -299,12 +299,4 @@ weapon_t w_shockrifle =
.aimanim = w_shockrifle_aimanim,
.hudpic = w_shockrifle_hudpic,
.isempty = w_shockrifle_isempty
};
#ifdef SERVER
void
weapon_shockrifle(void)
{
Weapons_InitItem(WEAPON_SHOCKRIFLE);
}
#endif
};

View File

@ -290,12 +290,4 @@ weapon_t w_sniperrifle =
.aimanim = w_sniperrifle_aimanim,
.hudpic = w_sniperrifle_hudpic,
.isempty = w_sniperrifle_isempty
};
#ifdef SERVER
void
weapon_sniperrifle(void)
{
Weapons_InitItem(WEAPON_SNIPERRIFLE);
}
#endif
};

View File

@ -440,12 +440,4 @@ weapon_t w_sporelauncher =
.aimanim = w_sporelauncher_aimanim,
.hudpic = w_sporelauncher_hudpic,
.isempty = w_sporelauncher_isempty
};
#ifdef SERVER
void
weapon_sporelauncher(void)
{
Weapons_InitItem(WEAPON_SPORELAUNCHER);
}
#endif
};

View File

@ -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" "6"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}
entityDef weapon_python
{
"spawnclass" "weapon_357"
}

View File

@ -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" "8"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}
entityDef weapon_mp5
{
"spawnclass" "weapon_9mmAR"
}

View File

@ -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" "5"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}
entityDef weapon_glock
{
"spawnclass" "weapon_9mmhandgun"
}

View File

@ -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" "10"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -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" "1"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -0,0 +1,14 @@
entityDef weapon_displacer
{
"editor_color" ".3 .3 1"
"editor_mins" "-16 -16 -16"
"editor_maxs" "16 16 16"
"editor_usage" "Displacer"
"editor_rotatable" "1"
"spawnclass" "NSItem"
"model" "models/w_displacer.mdl"
"inv_item" "21"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -0,0 +1,14 @@
entityDef weapon_eagle
{
"editor_color" ".3 .3 1"
"editor_mins" "-16 -16 -16"
"editor_maxs" "16 16 16"
"editor_usage" "Desert Eagle"
"editor_rotatable" "1"
"spawnclass" "NSItem"
"model" "models/w_desert_eagle.mdl"
"inv_item" "7"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -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" "13"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -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" "12"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -0,0 +1,14 @@
entityDef weapon_grapple
{
"editor_color" ".3 .3 1"
"editor_mins" "-16 -16 -16"
"editor_maxs" "16 16 16"
"editor_usage" "Barnacle Grappling-Hook"
"editor_rotatable" "1"
"spawnclass" "NSItem"
"model" "models/w_bgrap.mdl"
"inv_item" "4"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -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" "15"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -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" "14"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -0,0 +1,14 @@
entityDef weapon_knife
{
"editor_color" ".3 .3 1"
"editor_mins" "-16 -16 -16"
"editor_maxs" "16 16 16"
"editor_usage" "Knife"
"editor_rotatable" "1"
"spawnclass" "NSItem"
"model" "models/w_knife.mdl"
"inv_item" "3"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -0,0 +1,14 @@
entityDef weapon_m249
{
"editor_color" ".3 .3 1"
"editor_mins" "-16 -16 -16"
"editor_maxs" "16 16 16"
"editor_usage" "M249"
"editor_rotatable" "1"
"spawnclass" "NSItem"
"model" "models/w_saw.mdl"
"inv_item" "20"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -0,0 +1,14 @@
entityDef weapon_penguin
{
"editor_color" ".3 .3 1"
"editor_mins" "-16 -16 -16"
"editor_maxs" "16 16 16"
"editor_usage" "Penguin"
"editor_rotatable" "1"
"spawnclass" "NSItem"
"model" "models/w_penguinnest.mdl"
"inv_item" "19"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -0,0 +1,14 @@
entityDef weapon_pipewrench
{
"editor_color" ".3 .3 1"
"editor_mins" "-16 -16 -16"
"editor_maxs" "16 16 16"
"editor_usage" "Pipe-Wrench"
"editor_rotatable" "1"
"spawnclass" "NSItem"
"model" "models/w_pipe_wrench.mdl"
"inv_item" "2"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -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" "11"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -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" "16"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -0,0 +1,15 @@
entityDef weapon_shockrifle
{
"editor_color" ".3 .3 1"
"editor_mins" "-16 -16 -16"
"editor_maxs" "16 16 16"
"editor_usage" "Shockrifle"
"editor_rotatable" "1"
"spawnclass" "NSItem"
"model" "models/w_shock.mdl"
"inv_item" "24"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -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" "9"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -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" "18"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -0,0 +1,14 @@
entityDef weapon_sniperrifle
{
"editor_color" ".3 .3 1"
"editor_mins" "-16 -16 -16"
"editor_maxs" "16 16 16"
"editor_usage" "Sniper-Rifle"
"editor_rotatable" "1"
"spawnclass" "NSItem"
"model" "models/w_m40a1.mdl"
"inv_item" "22"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -0,0 +1,14 @@
entityDef weapon_sporelauncher
{
"editor_color" ".3 .3 1"
"editor_mins" "-16 -16 -16"
"editor_maxs" "16 16 16"
"editor_usage" "Sporelauncher"
"editor_rotatable" "1"
"spawnclass" "NSItem"
"model" "models/w_spore_launcher.mdl"
"inv_item" "23"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}

View File

@ -0,0 +1,16 @@
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"
"body" "2"
"frame" "8"
"inv_item" "17"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
}