Commit Graph

180 Commits

Author SHA1 Message Date
spookerton
3abdbbaa1c replaces atom.initialized with ATOM_INITIALIZED
refactors atom/var/flags to atom_flags and area_flags
moves NOBLOODY, NOBLUDGEON, and PHORONGUARD to item_flags instead of atom_flags
corrects various misapplied flags
2022-10-18 09:36:36 +01:00
atermonera
7a9806d9b4 Removes weapons 2022-04-17 19:14:32 -08:00
Rykka
3fd5296682 TGMC Ammo HUD Port
Ports over TGMC's Ammo HUD and all relevant code, adapted to work for Polaris's guns. This took me several days, but hey, I learned a bunch. <:
Time to port Aim Mode + Mentorhelp. :3c 
- All guns now have an ammo HUD sprite. If one lacks one, it will be ??? or blank, at which point, make an issue report, as all guns should be working by now.
- Guns will display how many rounds they have left until ammunition runs dry.
- Ammo will only count the casings that CURRENTLY have a projectile in them. This is slightly unrealistic, yes, but it is better and more intuitive for the player. This also enables guns like the revolver to work, given they recycle casings.
- Up to 4 ammo HUDs can be displayed at once, but given we lack TGMC's attachments and guncode, you'll only ever usually see 2. TBD on porting over TGMC guncode. <:
- Ammunition for multiple guns has different colors in the HUD based on what you currently have loaded.
- If you're looking at this later on to add new things. DON'T USE _FLASH IN THE HUD_STATE_EMPTY. THE _FLASH IS ADDED ON BY CODE.
- Grenades have a hud_state, pending us ever porting over a grenade launcher. Rockets ALSO have a hud_state.


Example of Laser/Energy Weapons:
https://i.imgur.com/MGvqGxh.mp4
Captain's Gun:
https://i.imgur.com/Wd0SS3C.gif

Full Test of all weapons:
https://streamable.com/usp4dy

Upstream port of https://github.com/CHOMPStation2/CHOMPStation2/pull/4033
2022-04-07 01:00:23 -06:00
spookerton
2dda71ecf0 remove ATAN2 define 2022-03-31 19:23:29 +01:00
spookerton
602cc67d2b removed CLAMP define 2022-03-31 19:21:58 +01:00
atermonera
ef87801641 Adds caseless BB rounds for common gun types 2022-01-26 20:13:48 -08:00
Cerebulon
cebc5fa3a1 Adds unique projectile hit messages to simplemobs (#8250)
* Adds unique hit messages to simplemobs

* decl'd hit lists

* how was that even working

* set decl ref on init
2021-10-10 19:20:18 -08:00
Mechoid
9ef79ebdcf Projectile Upkeep, Add Magic 2020-08-24 16:14:59 -07:00
Mechoid
9670de91dc Fix, AGAIN, the runtime in projectile.dm, 664. Stunrounds actually poof when needing to. 2020-07-06 23:38:48 -07:00
Mechoid
4ecdc08f35 Fix timing error that allowed processing to reference a nulled list. 2020-06-26 18:30:09 -07:00
Mechoid
d6cde302db Fixes bullets double-jeopardying people who are prone, if they are penetrating projectiles. 2020-06-07 05:59:03 -07:00
Aronai Sieyes
ad75bb86bd Alter playsound paradigm 2020-05-19 11:06:28 -04:00
Aronai Sieyes
bc1fa7bd05 Refactor Move() code 2020-04-27 10:08:55 -04:00
Atermonera
e6917046c5 Merge pull request #6829 from Neerti/projectile_hit_sounds
QoL: Projectiles
2020-03-16 21:55:24 -07:00
Mechoid
c7ba2a8e4b Antag Uplink Expansion (#6788)
* Adds Energy Daggerpens, Thieves gloves and Buzzer Ring.

* Updoot

* fixfix weakfire

* Extra Touches

* chlgongog

* Fix antag injector cases.
2020-03-16 21:21:41 -07:00
Neerti
f92324e4ad Adds a bunch of QoL things for projectiles. 2020-03-13 07:48:17 -04:00
Aronai Sieyes
d391d9ab12 Mobs can be incorporeal (#6791)
* Mobs can be incorporeal

Prevents step noises, getting shot, etc. Basically living ghosts. Feel free to add more places this should check, but I think this is a majority.

* Fix missing incorporeal floatyness
2020-03-10 22:33:38 -07:00
Mechoid
51fd39f84a Exosuit Expansion: Return of the Ripley (#6767)
* Expands further upon Exosuits.

* FixFix Inflatable Deployer

* Changelog, fix oversights.

* Burst.

* Default 0
2020-03-07 21:51:50 -08:00
Heroman3003
86274e0bc6 Makes every single shot not create ~40 timers but one 2019-09-26 09:04:22 +10:00
Mechoid
3fa77e7848 Adds Submunition projectiles, and a laser gun showcasing them. 2019-07-10 17:13:42 -07:00
Mechoid
234af8bc9e Multi-Tile movement, and a shuttle mechanized vehicle to use it. 2019-04-20 00:33:04 -07:00
Screemonster
15bfadce37 Unpicks some mining spaghetti (#5978)
* Untangle xenoarch from mining somewhat

* professionalism

* sonic jackhammers only for artefact-safe tunnelling

* destroy artefacts code disabled on everything
2019-03-12 19:00:19 -05:00
Neerti
1aea21ed8a Refactors arcing projectiles to use the new pixel system. 2019-02-20 02:25:51 -05:00
Neerti
a91fe1e9a5 Fixes turrets and makes mob AI shooting a little smarter. 2019-02-10 23:30:58 -05:00
kevinz000
9e662e8982 stuff 2019-01-31 21:45:02 -08:00
kevinz000
0e45e20923 stuff 2019-01-31 21:01:44 -08:00
kevinz000
8b2b1675ac Travis 2019-01-16 08:16:00 -08:00
kevinz000
1315bfff2c Merge remote-tracking branch 'polaris/master' into pixel_projectiles 2019-01-06 23:12:48 -08:00
Spades
81c3036140 Guns sounds refactor and improvements (#5803)
* Gun sound updates

Grenade Launcher sound source:
https://freesound.org/people/LeMudCrab/sounds/163458/

* Actually, this is a better way to handle this.

* Fixed accidental inconsistent indentation

* Renames shotgun.ogg to Gunshot_shotgun.ogg

Also actually changes the file names like I was supposed to last night.

* *peers* Didn't I just fix this shit?

* Actually fixes the missing files this time

* Update audible_deception.dm

* Changed tungsten core projectile sound by request

* Actually no this line is stupid and makes me angry

Simplifies dumb code that was badly copypasted.

Also fixed missing D'eagle fire_sound

* Smarter code

Less copypasta, more runtimes prevented in case somebody decides to make
a soundless gun whether done intentionally or not.

* Update gun.dm
2019-01-06 18:27:24 -08:00
kevinz000
a4b2b7c871 stuff 2018-12-23 02:34:45 -08:00
kevinz000
90e3dd4cc8 Merge remote-tracking branch 'polaris/master' into pixel_projectiles 2018-12-10 15:54:00 -08:00
kevinz000
c7d0f76205 Stuff 2018-10-22 23:26:38 -07:00
kevinz000
50838a76f2 Evreything works but timers 2018-10-14 10:47:27 -07:00
kevinz000
6164cf07d8 Refactors refactors more refactors 2018-10-05 11:13:23 -07:00
kevinz000
35d02d48ea Roped into porting a bunch of MORE stuff 2018-10-05 10:58:07 -07:00
kevinz000
5c6a2ac85f Adds a bunch of math helpers, timer subsystem, qdel/list helpers, mc stuff, comparator for timining subsystem, etc etc... 2018-10-05 10:49:55 -07:00
kevinz000
158ec02670 Pixel Projectiles 2018-10-05 10:26:48 -07:00
Neerti
75048b8e14 btw i use arc 2018-08-02 15:11:09 -04:00
Neerti
7b61dc16c1 Hivebots 2018-05-21 21:12:47 -04:00
Neerti
bac28e72de Merge branch 'master' of https://github.com/PolarisSS13/Polaris into 2/17/2018_make_AI_great_again 2018-04-03 22:16:16 -04:00
Arokha Sieyes
e8258ff13f POLARIS: Beam weapons runtime when you shoot yourself 2018-03-25 17:09:56 -04:00
Neerti
70ac478aea Merge pull request #5065 from VOREStation/vs-port-3204
[PORT] Revamp logging for consistency
2018-03-20 21:13:47 -04:00
Arokha Sieyes
73838e0a62 POLARIS: Revamp logging to be consistent 2018-03-13 18:20:58 -04:00
Anewbe
09effef4f9 More projectiles now ignite things 2018-03-11 15:47:48 -05:00
Mechoid
9cd4bde3d1 Test Projectiles can pass through things other projectiles are capable of, and unanchored structures. 2018-02-23 21:27:41 -08:00
Neerti
6c26c84695 Merge branch 'master' of https://github.com/PolarisSS13/Polaris into 2/17/2018_make_AI_great_again 2018-02-17 09:40:46 -05:00
Neerti
abb3a5f602 Begins work on new AI. 2018-02-17 09:40:22 -05:00
Anewbe
534a588a6a Gun changes (#4185)
* Various background gun changes

* Forgot to include the sounds, woops

* Fixes some more gun stuff

* Makes the cham gun work again
2018-02-12 23:12:14 -08:00
Neerti
9db34eae86 Adds Hunting Rounds
Adds a system for projectiles to inflict additional damage on specific kinds of simple animals.
Adds special bullets for certain rifles which are very effective against 'animal' SAs such as giant spiders, bears, carp, and such. The bullets do less damage to other targets such as humanoids.
Replaces the southern cross gun locker regular ammo with hunting ammo.
2017-11-19 23:59:17 -05:00
Mechoid
48d8375cac Incendiary >= 2 projectile fixes. (#4127)
* A whole load of things.

* Fixes the SM Rod's travel distance.

* Flame it again, Tony. Fixes flamefuel spawning on rock-wall turf.
2017-10-22 00:26:33 -05:00