Skip to content

Commit

Permalink
New boxes for Repair Kit & teleporter
Browse files Browse the repository at this point in the history
modified entities.def
  • Loading branch information
perle committed Aug 27, 2024
1 parent 4a34cec commit a6261c2
Show file tree
Hide file tree
Showing 18 changed files with 65 additions and 4 deletions.
Binary file modified baseq3r/icons/medkit.tga
Binary file not shown.
Binary file modified baseq3r/icons/teleporter.tga
Binary file not shown.
Binary file added baseq3r/models/powerups/holdable/envmapmedkit.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baseq3r/models/powerups/holdable/medkit-glow.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified baseq3r/models/powerups/holdable/medkit.md3
Binary file not shown.
Binary file added baseq3r/models/powerups/holdable/medkit.tga
Binary file not shown.
Binary file removed baseq3r/models/powerups/holdable/medkit_1.md3
Binary file not shown.
Binary file not shown.
Binary file added baseq3r/models/powerups/holdable/medkitfluid.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified baseq3r/models/powerups/holdable/teleporter.md3
Binary file not shown.
Binary file added baseq3r/models/powerups/holdable/teleporter.tga
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 62 additions & 1 deletion baseq3r/scripts/ammo.shader
Original file line number Diff line number Diff line change
@@ -1,8 +1,69 @@
// powerups

//
// holdable
//

models/powerups/holdable/medkit_box
{
{
map models/powerups/holdable/envmapmedkit.tga
rgbGen identity
tcMod rotate 12
tcMod turb 0 0.5 0 0.5
tcMod scroll 1 0.5
}
{
map models/powerups/holdable/medkitfluid.tga
blendfunc add
rgbGen identity
tcMod scroll 0.5 0
tcGen environment
}
{
map models/powerups/holdable/medkit_box.tga
blendfunc blend
rgbGen lightingDiffuse
}
{
map models/powerups/holdable/medkit-glow.tga
blendfunc gl_one_minus_dst_color gl_src_alpha
rgbGen wave noise 0 1 0 5
}
}

models/powerups/holdable/teleporter_box
{
{
map models/powerups/holdable/envmapteleporter.tga
rgbGen identity
tcMod rotate 12
tcMod turb 0 0.5 0 0.5
tcMod scroll 1 0.5
}
{
map models/powerups/holdable/teleporterfluid.tga
blendfunc add
rgbGen identity
tcMod scroll 0.5 0
tcGen environment
}
{
map models/powerups/holdable/teleporter_box.tga
blendfunc blend
rgbGen lightingDiffuse
}
{
map models/powerups/holdable/teleporter-glow.tga
blendfunc gl_one_minus_dst_color gl_src_alpha
rgbGen wave noise 0 1 0 5
}
}

//
// ammo
//

models/powerups/ammo/bfgammo_new
{
{
Expand Down Expand Up @@ -356,4 +417,4 @@ models/powerups/ammo/flameammo2
rgbGen identity
}

}
}
2 changes: 1 addition & 1 deletion engine/code/game/bg_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ gitem_t bg_itemlist[] =
"models/powerups/holdable/medkit_sphere.md3",
NULL, NULL},
/* icon */ "icons/medkit",
/* pickup */ "Medkit",
/* pickup */ "Repair Kit",
60,
IT_HOLDABLE,
HI_MEDKIT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ HOLDABLE_* ENTITIES

//=============================================================================

/*QUAKED holdable_medkit (.7 0 1) (-16 -16 -16) (16 16 16) SUSPENDED
Medkit that can be picked up and used later. Brings the player's health back to 100 when used. Player can only carry one holdable item at a time.
/*QUAKED repair_kit (.7 0 1) (-16 -16 -16) (16 16 16) SUSPENDED
Repair Kit that can be picked up and used later. Brings the player's health up to 125 when used. Player can only carry one holdable item at a time.
-------- KEYS --------
wait : time in seconds before item respawns after being picked up (default 60, -1 = never respawn).
random : random time variance in seconds added or subtracted from "wait" delay (default 0 - see Notes).
Expand Down

0 comments on commit a6261c2

Please sign in to comment.