mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-19 14:41:50 +00:00
Projectile hitscan effects moved to /effects/projectiles folder.
Most of projectile firing code and some of impact code refactored, and projectile hitscan effects refactored with ported TGcode (which is mostly TGcode I wrote anyways 😎)
Projectiles can now be fired at any angle, instead of just at the center of turfs!
Projectiles are now [in theory] 100% accurate down to 0.001 of a pixel.
13 lines
303 B
Plaintext
13 lines
303 B
Plaintext
/proc/getviewsize(view)
|
|
var/viewX
|
|
var/viewY
|
|
if(isnum(view))
|
|
var/totalviewrange = 1 + 2 * view
|
|
viewX = totalviewrange
|
|
viewY = totalviewrange
|
|
else
|
|
var/list/viewrangelist = splittext(view,"x")
|
|
viewX = text2num(viewrangelist[1])
|
|
viewY = text2num(viewrangelist[2])
|
|
return list(viewX, viewY)
|