Skip to content

Commit

Permalink
Add momentum weapon and ammo entities (#184)
Browse files Browse the repository at this point in the history
Co-authored-by: chovelyoukai <alice@makai>
  • Loading branch information
chovelyoukai and chovelyoukai committed Jun 3, 2023
1 parent 3660b7b commit d60d4e3
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 17 deletions.
6 changes: 6 additions & 0 deletions fgd/bases/MomentumPickup.fgd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@BaseClass base(BaseEntityPoint)
appliesto(MOMENTUM)
= MomentumPickup
[
ResetTime(float) : "Delay before reset" : 10 : "How long until the pickup reappears after being picked up. 0 means it won't disappear and negative values mean it won't reappear."
]
16 changes: 0 additions & 16 deletions fgd/point/momentum/momentum_df_weaponspawner.fgd

This file was deleted.

8 changes: 8 additions & 0 deletions fgd/point/momentum/momentum_pickup_ammo.fgd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@PointClass base(MomentumPickup)
appliesto(MOMENTUM)
size(-43 -43 -36, 43 43 66)
= momentum_pickup_ammo : "Ammo Pickup"
[
AmmoName(string) : "Ammo Name" : "" : "The type of ammo to give the player."
PickupAmmo(integer) : "Pickup Ammo" : 5 : "The amount of ammo to give the player. Any negative value is infinite ammo."
]
7 changes: 7 additions & 0 deletions fgd/point/momentum/momentum_powerup_damage_boost.fgd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@PointClass base(MomentumPickup)
appliesto(MOMENTUM)
size(-43 -43 -36, 43 43 66)
= momentum_powerup_damage_boost : "Damage Boost Powerup"
[
DamageBoostTime(float) : "Damage Boost Time" : "30" : "The amount of time in seconds the damage boost effect lasts. Any negative value is infinite duration."
]
7 changes: 7 additions & 0 deletions fgd/point/momentum/momentum_powerup_haste.fgd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@PointClass base(MomentumPickup)
appliesto(MOMENTUM)
size(-43 -43 -36, 43 43 66)
= momentum_powerup_haste : "Haste Powerup"
[
HasteTime(float) : "Haste Time" : "30" : "The amount of time in seconds the haste effect lasts. Any negative value is infinite duration."
]
8 changes: 8 additions & 0 deletions fgd/point/momentum/momentum_weapon_spawner.fgd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@PointClass base(MomentumPickup)
appliesto(MOMENTUM)
size(-43 -43 -36, 43 43 66)
= momentum_weapon_spawner : "Weapon Spawner"
[
WeaponName(string) : "Weapon Name" : "" : "The name of the weapon to give the player."
PickupAmmo(integer) : "Pickup Ammo" : 0 : "The amount of ammo to give the player when they pick up this weapon. Any negative value is infinite ammo."
]
9 changes: 8 additions & 1 deletion fgd/visgroups.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@
* `weapon_portalgun`
* `weapon_cubemap`
* `weapon_paintgun`
* `momentum_df_weaponspawner`
* `momentum_weapon_spawner`
- Items
- Ammunition
* `item_ammo_357`
Expand All @@ -849,6 +849,9 @@
* `item_box_mrounds`
* `item_box_srounds`
* `item_paint_power_pickup`

# Momentum
* `momentum_pickup_ammo`
- Large Ammunition
* `item_ammo_357_large`
* `item_ammo_ar2_large`
Expand Down Expand Up @@ -881,6 +884,10 @@
* `item_nugget`
* `item_boots`

# Momentum
* `momentum_powerup_haste`
* `momentum_powerup_damage_boost`

- World Details
- Props
- Dynamic
Expand Down

0 comments on commit d60d4e3

Please sign in to comment.