Martin Natano
b68ca517e6
Clean up math functions
...
- Remove checking for standard functions from the build system
- Prefix all invocations with std::
- Replace suffixed functions with unprefixed versions
- Include <cmath> in all files that use it and remove the global include
e.g. floorf(x) -> std::floor(x)
2023-04-19 19:31:40 +02:00
Michael Sundqvist
0cba3579de
Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
...
Fix whitespace changes
2022-07-31 22:14:38 +02:00
Colby Klein
4977f29fe3
silence a bunch of msvc warnings
2019-03-28 15:05:07 -07:00
Colby Klein
b4e02821e8
Revert "Improve handling of errors in lua functions and speed up calls. ( #1427 )"
...
This reverts commit f10e3ae36a .
(it was a joke PR, do not fear)
2017-04-04 17:21:55 -07:00
Kyzentun
f10e3ae36a
Improve handling of errors in lua functions and speed up calls. ( #1427 )
2017-04-04 11:36:23 -07:00
Kyzentun Keeslala
4e0fa012c1
Added SetLife and ChangeLife lua functions to Player. Updated changelog.
2015-12-16 15:08:36 -07:00
Kyzentun
b293a8c073
Added debug key for toggling action sounds off. Touches every place that RageSound::Play is called, hope I didn't miss one.
2015-02-28 06:25:02 -07:00
Kyzentun
6cacfef71d
Changed LifeMeterBattery to not subtract 1 from displayed life number, so the number will match the amount broadcast in the LifeChanged message.
2015-02-13 00:20:38 -07:00
Kyzentun
4f95bf08ad
Function chaining for actors and singletons.
2014-12-01 22:31:30 -07:00
Kyzentun
7e73892e6e
Moved LifeType, DrainType, and BatteryLives from Song Options to Player Options. Added ScreenGameplay:FailFadeRemovePlayer lua function.
2014-08-06 23:26:05 -06:00
Kyzentun
6aad3c8f75
Added CourseSongRewardLives metric to LifeMeterBattery.
2014-08-06 15:26:54 -06:00
AJ Kelly
c8e99cc18b
[LifeMeterBattery] Fixed various issues (lives not fully disappearing on fail, P2 lose life animation having the wrong x zoom, hide the lives number if it falls below 0).
2011-12-12 22:13:32 -06:00
AJ Kelly
aabb060446
[LifeMeterBattery] Added MaxLives metric, which limits the maximum amount of lives. Setting this to 0 will remove the limit.
2011-11-28 22:13:30 -06:00
AJ Kelly
d413a0044d
[LifeMeterBattery] Added LostLife param to LifeChanged message. Converted LifeMeterBattery lives to an AutoActor.
2011-08-07 01:05:43 -05:00
AJ Kelly
5386525448
[LifeMeterBattery] Fixed a bug where MinesSubtractLives was not being honored. Also added LifeChanged message to changing of life on holds.
2011-06-17 01:06:01 -05:00
AJ Kelly
d8e1296b5b
[LifeMeterBattery] Added ChangeLives(int) Lua binding.
2011-06-13 13:32:28 -05:00
AJ Kelly
11c84f8c50
[LifeMeterBattery] Added DangerThreshold metric.
2011-06-13 02:00:09 -05:00
AJ Kelly
38ea269a10
[LifeMeterBattery] Added some metrics that allow anyone to change how the battery meter handles lives.
...
* MinScoreToKeepLife='TapNoteScore_*' - any score below this = loss of life.
* SubtractLives=1 - how many lives are lost when going below MinScoreToKeepLife.
* MinesSubtractLives=1 - how many lives are lost when hitting a mine.
* HeldAddLives=0 - how many lives are gained when a hold is completed.
* LetGoSubtractLives=1 - how many lives are lost on a dropped hold.
2011-06-13 01:39:23 -05:00
AJ Kelly
1b7b03ca19
small comment changes
2011-06-03 18:55:14 -05:00
AJ Kelly
f3ded5f68a
[LifeMeterBattery] Added LivesLeft param to LifeChanged message.
2011-06-03 16:21:30 -05:00
AJ Kelly
9efb17eca7
[LifeMeterBattery] Convert Frame to an AutoActor.
2011-04-21 01:44:13 -05:00
AJ Kelly
7e40b94133
small cleanup
2011-04-20 16:50:22 -05:00
Jason Felds
a085d0d1da
Line endings...be normalized!
2011-03-17 01:47:30 -04:00
Jason Felds
9d13036e08
Add @briefs to the Luna classes.
...
Yeah...there was a lot. */
2011-02-19 12:26:18 -05:00
AJ Kelly
283905a8cb
life changes from midi
2010-09-02 00:23:49 -05:00
AJ Kelly
6e2f688384
small comment cleanup
2010-06-26 18:37:50 -05:00
AJ Kelly
97a6696b65
Add LifeMeterBattery:GetLivesLeft() Lua binding.
2010-05-18 18:06:49 -05:00
AJ Kelly
3e51544930
Initial commit.
2010-01-26 21:00:30 -06:00
Devin J. Pohly
80057f53cd
smsvn -> ssc-hg glue: rearrange directory structure
2013-06-10 15:38:43 -04:00