Skip to content

Commit

Permalink
Updates Yautja Plasma Rifle (#3942)
Browse files Browse the repository at this point in the history
# Explain Changes

Makes several changes to the Predators Plasma Rifle to improve its
usability, these changes are.

- Removes the mini-HPC mode
- Increases standard bolt rounds to have 50 penetration, retaining their
default 55 damage
- Makes the weapon a two-handed weapon, allowing the user to increase
their accuracy
- Updates desc to indicate this is a combat weapon and not a hunting
weapon

# Explain why it's good for the game

The Plasma Rifle is a hold over from when it used to be a dedicated
hunting weapon. In the curret iteration of it being a weapon that only
appears when an abomination appears, it is very lacklustre. Its default
fire mode deals incredibly low damage (usually only dealing 10 to 20
points of damage per shot to xenos) and its mini-HPC fire setting is
quite useless against the Abomination, dealing negligble damage and not
stunning, with it only being useful to stun regular Xenomorphs. Its low
accuracy at range further diminishes its usefulness when compared to the
standard Plasma Pistol let alone a melee weapon.

Furthermore the incredibly long recharge time and the fact firing the
gun's bolt mode would drain the battery further means the only viable
strategy to use the Plasma Rifle is to hoard them, only shoot once for
its mini-HPC, then ditch them until they recharge in the future.

This update will boost its effectiveness as a more generalist assault
weapon. While its maximum DPS is lower than a good Predator using their
melee, it now allows a Predator to apply consistent and reliable damage
at range that is effective against xenomorphs

However the lower ROF will give Xenos a chance to disengage, or allow a
Predator a chance to cease fire if they just want to let a Xeno retreat
and stop harassing it as it pursues a Predalien.


# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

![Screenshot 2023-07-19 17 53
35](https://github.com/cmss13-devs/cmss13/assets/6595389/5865157c-8650-41b2-a229-cb2aeca6af6c)
New in-hand sprites

</details>


# Changelog
:cl:
balance: Yautja's Plasma Rifle has been rebalanced to make it a more
effective assault weapon against xenomorphs. It has lost its mini-high
explosive fire mode but its default fire mode now mostly ignores
xenomorph armor.
/:cl:

---------

Co-authored-by: Steelpoint <[email protected]>
  • Loading branch information
Steelpoint and Steelpoint committed Aug 8, 2023
1 parent c542c2e commit 4594547
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 34 deletions.
12 changes: 4 additions & 8 deletions code/modules/cm_preds/yaut_weapons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@

/obj/item/weapon/gun/energy/yautja/plasmarifle
name = "plasma rifle"
desc = "A long-barreled heavy plasma weapon capable of taking down large game. It has a mounted scope for distant shots and an integrated battery."
desc = "A long-barreled heavy plasma weapon. Intended for combat, not hunting. Has an integrated battery that allows for a functionally unlimited amount of shots to be discharged. Equipped with an internal gyroscopic stabilizer allowing its operator to fire the weapon one-handed if desired"
icon_state = "plasmarifle"
item_state = "plasmarifle"
unacidable = TRUE
Expand All @@ -836,7 +836,7 @@
var/charge_time = 0
var/last_regen = 0
flags_gun_features = GUN_UNUSUAL_DESIGN
flags_item = ITEM_PREDATOR
flags_item = ITEM_PREDATOR|TWOHANDED

/obj/item/weapon/gun/energy/yautja/plasmarifle/Initialize(mapload, spawn_empty)
. = ..()
Expand Down Expand Up @@ -889,12 +889,8 @@
return ..()

/obj/item/weapon/gun/energy/yautja/plasmarifle/load_into_chamber()
if(charge_time >= 80)
ammo = GLOB.ammo_list[/datum/ammo/energy/yautja/rifle/blast]
charge_time -= 80
else
ammo = GLOB.ammo_list[/datum/ammo/energy/yautja/rifle/bolt]
charge_time -= 10
ammo = GLOB.ammo_list[/datum/ammo/energy/yautja/rifle/bolt]
charge_time -= 10
var/obj/item/projectile/projectile = create_bullet(ammo, initial(name))
projectile.SetLuminosity(1)
in_chamber = projectile
Expand Down
27 changes: 1 addition & 26 deletions code/modules/projectiles/ammo_datums.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2367,32 +2367,7 @@
flags_ammo_behavior = AMMO_IGNORE_RESIST

damage = 55

/datum/ammo/energy/yautja/rifle/blast
name = "plasma shatterer"
icon_state = "bluespace"
damage_type = BURN

shell_speed = AMMO_SPEED_TIER_4
damage = 40

/datum/ammo/energy/yautja/rifle/blast/on_hit_mob(mob/M, obj/item/projectile/P)
var/L = get_turf(M)
cell_explosion(L, 90, 30, EXPLOSION_FALLOFF_SHAPE_LINEAR, null, P.weapon_cause_data)
..()

/datum/ammo/energy/yautja/rifle/blast/on_hit_turf(turf/T, obj/item/projectile/P)
cell_explosion(T, 90, 30, EXPLOSION_FALLOFF_SHAPE_LINEAR, null, P.weapon_cause_data)
..()

/datum/ammo/energy/yautja/rifle/blast/on_hit_obj(obj/O, obj/item/projectile/P)
cell_explosion(get_turf(O), 100, 30, EXPLOSION_FALLOFF_SHAPE_LINEAR, null, P.weapon_cause_data)
..()

/datum/ammo/energy/yautja/rifle/blast/do_at_max_range(obj/item/projectile/P)
cell_explosion(get_turf(P), 100, 30, EXPLOSION_FALLOFF_SHAPE_LINEAR, null, P.weapon_cause_data)
..()

penetration = 50

/*
//======
Expand Down
Binary file modified icons/mob/humans/onmob/hunter/items_lefthand.dmi
Binary file not shown.
Binary file modified icons/mob/humans/onmob/hunter/items_righthand.dmi
Binary file not shown.

0 comments on commit 4594547

Please sign in to comment.