Skip to content

Commit

Permalink
tweak: aiming lying targets by changing intent (#6222)
Browse files Browse the repository at this point in the history
* intent targeting

* very important commit

---------

Co-authored-by: Antoonij <[email protected]>
  • Loading branch information
LiquidPotroh and Antoonij authored Dec 22, 2024
1 parent 6a08d76 commit d41f484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions code/modules/projectiles/projectile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@
Angle = round(get_angle(src, current))
if(spread)
Angle += (rand() - 0.5) * spread
if(firer)
hit_crawling_mobs_chance = firer.a_intent == INTENT_HELP ? 0 : 100
// Turn right away
var/matrix/M = new
M.Turn(Angle)
Expand Down Expand Up @@ -422,6 +424,7 @@
current = curloc
yo = new_y - curloc.y
xo = new_x - curloc.x
hit_crawling_mobs_chance = 100
set_angle(get_angle(curloc, original))


Expand Down
2 changes: 0 additions & 2 deletions code/modules/spacepods/equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@
projone.firer = usr
projone.firer_source_atom = src
projone.def_zone = BODY_ZONE_CHEST
projone.hit_crawling_mobs_chance = 33 // temporal soulution (or permanent), until weapons targeting rework
projtwo.starting = get_turf(my_atom)
projtwo.firer = usr
projtwo.firer_source_atom = src
projtwo.def_zone = BODY_ZONE_CHEST
projtwo.hit_crawling_mobs_chance = 33
spawn()
playsound(src, fire_sound, 50, 1)
projone.dumbfire(my_atom.dir)
Expand Down

0 comments on commit d41f484

Please sign in to comment.