Alexander Kromm
d28ba37af2
make various getter and pure-math methods clearscope, and where applicable, const
...
Original PR: https://github.com/coelckers/gzdoom/pull/532
Status of the original PR
1. Actor
- [already in] deltaangle
- [already in] absangle
- [already in] AngleToVector
- [already in] RotateVector
- [already in] Normalize180
- [already in] BobSin
- [already in] GetDefaultSpeed
- [this PR] GetBobOffset
- [this PR] InStateSequence
- [already in] FindState
- [already in] GetDropItems
- [this PR] DistanceBySpeed
- [this PR] AccuracyFactor
- [not in original PR, for PlayerInfo.isTotallyFrozen] isFrozen
2. PlayerInfo
- [this PR] GetUserName
- [this PR] GetColor
- [this PR] GetDisplayColor
- [this PR] GetColorSet
- [this PR] GetPlayerClassNum
- [this PR] GetSkin
- [this PR] GetNeverSwitch
- [this PR] GetGender
- [this PR] GetTeam
- [this PR] GetAutoaim
- [this PR] GetNoAutostartMap
- [this PR] GetClassicFlight
- [this PR] IsTotallyFrozen
3. C++ methods, to match ZScript:
- [scriptified] AActor::AccuracyFactor() to Actor.AccuracyFactor
- [this PR] AActor::DistanceBySpeed(AActor *, double) — it is a combination of getter and pure math
- [this PR] AActor::Distance2D(AActor *, bool) — called by DistanceBySpeed
- [this PR] AActor::Distance2D(AActor *, double, double, bool) — called by DistanceBySpeed
- [not in original PR, for PlayerInfo.isTotallyFrozen] AActor::isFrozen
# Conflicts:
# src/actor.h
# src/actorinlines.h
2020-06-07 14:34:48 +02:00
Mekboss
b658d4c225
Fix MSVS compile bug and add offset parameter for SprayDecal
...
# Conflicts:
# src/g_shared/a_sharedglobal.h
2020-05-08 14:52:56 +02:00
Mekboss
6e30ac5f3c
Replace function variables to DVector3
...
# Conflicts:
# src/g_shared/a_sharedglobal.h
2020-05-08 14:52:53 +02:00
Mekboss
bfe367fb20
Add optional direction parameters for SprayDecal and its A_SprayDecal zscript counterpart
...
# Conflicts:
# src/g_shared/a_sharedglobal.h
2020-05-08 14:52:51 +02:00
Cacodemon345
19b125ca3a
Fix bouncing missiles not dealing damage when hitting top/bottom ( #1068 )
...
* Fix bouncing missiles not dealing damage when hitting top/bottom
2020-04-30 11:45:45 +02:00
Christoph Oelckers
411b287cd9
- block off the Substitute function by making it private to the 3 classes that really need it.
2020-04-19 21:39:25 +02:00
nashmuhandes
72ecc11e8d
Added Actor.CopyBloodColor to copy another existing actor's blood color.
2020-03-24 01:36:58 +01:00
nashmuhandes
315efb2b97
Add help messages for most of the deprecated stuff in ZScript.
...
# Conflicts:
# wadsrc/static/zscript/actors/actor.zs
# wadsrc/static/zscript/base.zs
# wadsrc/static/zscript/destructible.zs
# wadsrc/static/zscript/mapdata.zs
# Conflicts:
# wadsrc/static/zscript/base.zs
2020-03-16 11:07:29 +01:00
alexey.lysiuk
eaa7e392d7
- fixed FLineTraceData scripting definition
...
https://forum.zdoom.org/viewtopic.php?t=67795
# Conflicts:
# src/scripting/thingdef_data.cpp
2020-03-14 19:15:27 +01:00
Rachael Alexanderson
c9476e6188
- remove addition from deprecated A_PlaySound
2020-03-03 10:58:50 +01:00
Rachael Alexanderson
4625925a69
- ported over Nash's startTime for A_StartSound
2020-03-03 10:58:46 +01:00
Major Cooke
45c80916bc
Added A_StopSounds(int chanmin, int chanmax).
...
- If both channels are 0, completely silences the actor.
- Adapted A_StopAllSounds to call A_StopSounds(0,0);
2020-03-01 20:27:03 +01:00
Major Cooke
3e77f9a6bd
Added A_StopAllSounds.
2020-02-29 20:02:17 +01:00
Christoph Oelckers
5229a84047
- deprecated A_PlaySound for real and transitoned the internal scripts to A_StartSound
...
# Conflicts:
# wadsrc_extra/static/filter/harmony/decorate.txt
2020-01-07 19:36:57 +01:00
Christoph Oelckers
ce1f4427cc
- cleaned up the parameters of A_StartSound.
...
There were two booleans that could be merged into the flag word.
This also fixes a bug with CHAN_NOSTOP not working for local sounds because it checked the wrong sound source for the playing sound.
2020-01-07 19:36:52 +01:00
Christoph Oelckers
25288d5cea
- renamed IsActorPlayingSomething to IsActorPlayingSound and made it clearscope.
2020-01-06 15:08:26 +01:00
Christoph Oelckers
c3759f389c
- separated the channel number from the flags in the sound interface so that the 8 channel limit can be eliminated.
...
- added Marisa Kirisame's CHAN_OVERLAP flag.
- exported S_IsActorPlayingSomething to ZScript.
The sound API change required deprecating A_PlaySound and S_Sound. There are now new variants S_StartSound and A_StartSound which have two distinct parameters for channel and flags.
# Conflicts:
# src/bbannouncer.cpp
# src/fragglescript/t_func.cpp
# src/g_shared/a_lightning.cpp
# src/p_effect.cpp
# src/p_mobj.cpp
# src/p_switch.cpp
# src/playsim/p_spec.cpp
# src/sound/s_doomsound.cpp
# src/sound/s_doomsound.h
# wadsrc/static/zscript/base.zs
# Conflicts:
# src/intermission/intermission.cpp
# src/sound/s_doomsound.cpp
2020-01-06 15:00:05 +01:00
Christoph Oelckers
8adf2c34cd
- continued refactoring on sound code.
...
The game independent part of the code has been mostly isolated.
# Conflicts:
# src/sound/s_doomsound.cpp
# src/sound/s_sound.cpp
# src/sound/s_sound.h
# Conflicts:
# src/sound/s_sound.cpp
2020-01-06 13:45:19 +01:00
Christoph Oelckers
358718de05
- removed the playernum parameter from CheckLocalView
...
This was always used with 'consoleplayer' which really is the only thing making sense here. But this is a part of the global state which should be avoided in play code.
In particular, this makes no real sense in case of secondary maps where it should always return false.
# Conflicts:
# src/fragglescript/t_func.cpp
# src/g_inventory/a_keys.cpp
# src/p_acs.cpp
# src/p_mobj.cpp
# src/p_user.cpp
# src/r_data/r_interpolate.cpp
# src/r_data/r_interpolate.h
2019-09-02 21:17:19 +02:00
Major Cooke
7f5a2d3a11
Added A_SoundPitch and an optional pitch parameter to A_PlaySound and S_Sound.
...
- Note: Because sound channels are not in zscript, there's no way to modify a sound made by S_Sound.
# Conflicts:
# src/s_sound.cpp
# wadsrc/static/zscript/base.zs
2019-07-25 00:06:12 +02:00
Christoph Oelckers
26863bfd94
- tested and fixed the attachable lights.
...
# Conflicts:
# src/g_shared/a_dynlight.cpp
2019-07-17 17:53:43 +02:00
Christoph Oelckers
0c4fc385cc
- User definable dynamic lights
...
This hasn't been tested yet!
# Conflicts:
# src/g_shared/a_dynlight.h
# Conflicts:
# src/g_shared/a_dynlightdata.cpp
2019-07-17 17:51:28 +02:00
Major Cooke
fc510a7d89
Added CanTouchItem virtual.
...
- Allows an actor with +PICKUP flag to determine if it can pick up specific items or not.
2019-04-28 22:57:40 +02:00
Christoph Oelckers
961a6fe211
- reorganized the ZScript content in gzdoom.pk3 and changed the files' extensions to something unique for easier syntax highlighting.
...
# Conflicts:
# wadsrc/static/zscript.txt
2019-04-28 22:14:34 +02:00