Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
MLGTASTICa committed Aug 11, 2024
1 parent 5ffee2b commit 429fe4a
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions code/controllers/subsystems/bullets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -236,29 +236,28 @@ SUBSYSTEM_DEF(bullets)
//message_admins("stepX:[stepX] , stepY : [stepY]")


if(canContinue != PROJECTILE_CONTINUE)
var/a = round((stepX)/32)
var/b = round((stepY)/32)
var/c = round((currentZ)/32)
var/turf/turfer = locate(a,b,c)
var/atom/movable/special = new /obj/item()
message_admins("stepX:[stepX] , stepY : [stepY]")
message_admins("MovTurf ----- X: [movementTurf.x] Y:[movementTurf.y] Z:[movementTurf.z]")
message_admins("VisTurf ----- X: [a] Y:[b] Z:[c]")
special.forceMove(turfer)
special.icon = projectile.icon
special.icon_state = projectile.icon_state
special.pixel_x = round((stepX))%32 - 16
special.pixel_y = round((stepY))%32 - 16
special.transform = projectile.transform
dataReference.lifetime = 0
break

currentX = dataReference.globalX
currentY = dataReference.globalY
currentZ = dataReference.globalZ

var/bulletTime = SSbullets.wait *(dataReference.pixelSpeed / (dataReference.pixelSpeed + pixelTotal))
if(canContinue != PROJECTILE_CONTINUE)
var/a = round((stepX)/32)
var/b = round((stepY)/32)
var/c = round(currentZ/32)
var/turf/turfer = locate(a,b,c)
var/atom/movable/special = new /obj/item()
message_admins("stepX:[stepX] , stepY : [stepY]")
message_admins("MovTurf ----- X: [movementTurf.x] Y:[movementTurf.y] Z:[movementTurf.z]")
message_admins("VisTurf ----- X: [a] Y:[b] Z:[c]")
special.forceMove(turfer)
special.icon = projectile.icon
special.icon_state = projectile.icon_state
special.pixel_x = round((stepX))%32 - 16
special.pixel_y = round((stepY))%32 - 16
special.transform = projectile.transform


animate(projectile, bulletTime, pixel_x = dataReference.globalX%PPT - HPPT, pixel_y = dataReference.globalY%PPT - HPPT, flags = ANIMATION_END_NOW)
if(dataReference.lifetime < 1)
Expand Down

0 comments on commit 429fe4a

Please sign in to comment.