mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 09:11:17 +00:00
fb50df2c63
surprised if this doesn't build in Linux right now. The CMakeLists.txt were checked with MinGW and NMake, but how they fair under Linux is an unknown to me at this time. - Converted most sprintf (and all wsprintf) calls to either mysnprintf or FStrings, depending on the situation. - Changed the strings in the wbstartstruct to be FStrings. - Changed myvsnprintf() to output nothing if count is greater than INT_MAX. This is so that I can use a series of mysnprintf() calls and advance the pointer for each one. Once the pointer goes beyond the end of the buffer, the count will go negative, but since it's an unsigned type it will be seen as excessively huge instead. This should not be a problem, as there's no reason for ZDoom to be using text buffers larger than 2 GB anywhere. - Ripped out the disabled bit from FGameConfigFile::MigrateOldConfig(). - Changed CalcMapName() to return an FString instead of a pointer to a static buffer. - Changed startmap in d_main.cpp into an FString. - Changed CheckWarpTransMap() to take an FString& as the first argument. - Changed d_mapname in g_level.cpp into an FString. - Changed DoSubstitution() in ct_chat.cpp to place the substitutions in an FString. - Fixed: The MAPINFO parser wrote into the string buffer to construct a map name when given a Hexen map number. This was fine with the old scanner code, but only a happy coincidence prevents it from crashing with the new code - Added the 'B' conversion specifier to StringFormat::VWorker() for printing binary numbers. - Added CMake support for building with MinGW, MSYS, and NMake. Linux support is probably broken until I get around to booting into Linux again. Niceties provided over the existing Makefiles they're replacing: * All command-line builds can use the same build system, rather than having a separate one for MinGW and another for Linux. * Microsoft's NMake tool is supported as a target. * Progress meters. * Parallel makes work from a fresh checkout without needing to be primed first with a single-threaded make. * Porting to other architectures should be simplified, whenever that day comes. - Replaced the makewad tool with zipdir. This handles the dependency tracking itself instead of generating an external makefile to do it, since I couldn't figure out how to generate a makefile with an external tool and include it with a CMake-generated makefile. Where makewad used a master list of files to generate the package file, zipdir just zips the entire contents of one or more directories. - Added the gdtoa package from netlib's fp library so that ZDoom's printf-style formatting can be entirely independant of the CRT. SVN r1082 (trunk)
224 lines
3 KiB
Text
224 lines
3 KiB
Text
|
|
// Peasant Base Class -------------------------------------------------------
|
|
|
|
ACTOR Peasant : StrifeHumanoid
|
|
{
|
|
Health 31
|
|
PainChance 200
|
|
Speed 8
|
|
Radius 20
|
|
Height 56
|
|
Monster
|
|
+FRIENDLY
|
|
-COUNTKILL
|
|
+NOSPLASHALERT
|
|
MinMissileChance 150
|
|
MaxStepHeight 16
|
|
MaxDropoffHeight 32
|
|
SeeSound "peasant/sight"
|
|
AttackSound "peasant/attack"
|
|
PainSound "peasant/pain"
|
|
DeathSound "peasant/death"
|
|
HitObituary "$OB_PEASANT"
|
|
States
|
|
{
|
|
Spawn:
|
|
PEAS A 10 A_Look2
|
|
Loop
|
|
See:
|
|
PEAS AABBCCDD 5 A_Wander
|
|
Loop
|
|
Melee:
|
|
PEAS E 10 A_FaceTarget
|
|
PEAS F 8 A_CustomMeleeAttack(2*random[PeasantAttack](1,5)+2)
|
|
PEAS E 8
|
|
Goto See
|
|
Pain:
|
|
PEAS O 3
|
|
PEAS O 3 A_Pain
|
|
Goto Melee
|
|
Wound:
|
|
PEAS G 5
|
|
PEAS H 10 A_GetHurt
|
|
PEAS I 6
|
|
Goto Wound+1
|
|
Death:
|
|
PEAS G 5
|
|
PEAS H 5 A_Scream
|
|
PEAS I 6
|
|
PEAS J 5 A_NoBlocking
|
|
PEAS K 5
|
|
PEAS L 6
|
|
PEAS M 8
|
|
PEAS N 1400
|
|
GIBS U 5
|
|
GIBS V 1400
|
|
Stop
|
|
XDeath:
|
|
GIBS M 5 A_TossGib
|
|
GIBS N 5 A_XScream
|
|
GIBS O 5 A_NoBlocking
|
|
GIBS PQRS 4 A_TossGib
|
|
Goto Death+8
|
|
}
|
|
}
|
|
|
|
// Peasant Variant 1 --------------------------------------------------------
|
|
|
|
ACTOR Peasant1 : Peasant 3004
|
|
{
|
|
Game Strife
|
|
ConversationID 6
|
|
Speed 4
|
|
}
|
|
|
|
ACTOR Peasant2 : Peasant 130
|
|
{
|
|
Game Strife
|
|
ConversationID 7
|
|
Speed 5
|
|
}
|
|
|
|
ACTOR Peasant3 : Peasant 131
|
|
{
|
|
Game Strife
|
|
ConversationID 8
|
|
Speed 5
|
|
}
|
|
|
|
ACTOR Peasant4 : Peasant 65
|
|
{
|
|
Game Strife
|
|
Translation 0
|
|
ConversationID 9
|
|
Speed 7
|
|
}
|
|
|
|
ACTOR Peasant5 : Peasant 132
|
|
{
|
|
Game Strife
|
|
Translation 0
|
|
ConversationID 10
|
|
Speed 7
|
|
}
|
|
|
|
ACTOR Peasant6 : Peasant 133
|
|
{
|
|
Game Strife
|
|
Translation 0
|
|
ConversationID 11
|
|
Speed 7
|
|
}
|
|
|
|
ACTOR Peasant7 : Peasant 66
|
|
{
|
|
Game Strife
|
|
Translation 2
|
|
ConversationID 12
|
|
}
|
|
|
|
ACTOR Peasant8 : Peasant 134
|
|
{
|
|
Game Strife
|
|
Translation 2
|
|
ConversationID 13
|
|
}
|
|
|
|
ACTOR Peasant9 : Peasant 135
|
|
{
|
|
Game Strife
|
|
Translation 2
|
|
ConversationID 14
|
|
}
|
|
|
|
ACTOR Peasant10 : Peasant 67
|
|
{
|
|
Game Strife
|
|
Translation 1
|
|
ConversationID 15
|
|
}
|
|
|
|
ACTOR Peasant11 : Peasant 136
|
|
{
|
|
Game Strife
|
|
Translation 1
|
|
ConversationID 16
|
|
}
|
|
|
|
ACTOR Peasant12 : Peasant 137
|
|
{
|
|
Game Strife
|
|
Translation 1
|
|
ConversationID 17
|
|
}
|
|
|
|
ACTOR Peasant13 : Peasant 172
|
|
{
|
|
Game Strife
|
|
Translation 3
|
|
ConversationID 18
|
|
}
|
|
|
|
ACTOR Peasant14 : Peasant 173
|
|
{
|
|
Game Strife
|
|
Translation 3
|
|
ConversationID 19
|
|
}
|
|
|
|
ACTOR Peasant15 : Peasant 174
|
|
{
|
|
Game Strife
|
|
Translation 3
|
|
ConversationID 20
|
|
}
|
|
|
|
ACTOR Peasant16 : Peasant 175
|
|
{
|
|
Game Strife
|
|
Translation 5
|
|
ConversationID 21
|
|
}
|
|
|
|
ACTOR Peasant17 : Peasant 176
|
|
{
|
|
Game Strife
|
|
Translation 5
|
|
ConversationID 22
|
|
}
|
|
|
|
ACTOR Peasant18 : Peasant 177
|
|
{
|
|
Game Strife
|
|
Translation 5
|
|
ConversationID 23
|
|
}
|
|
|
|
ACTOR Peasant19 : Peasant 178
|
|
{
|
|
Game Strife
|
|
Translation 4
|
|
ConversationID 24
|
|
}
|
|
|
|
ACTOR Peasant20 : Peasant 179
|
|
{
|
|
Game Strife
|
|
Translation 4
|
|
ConversationID 25
|
|
}
|
|
|
|
ACTOR Peasant21 : Peasant 180
|
|
{
|
|
Game Strife
|
|
Translation 4
|
|
ConversationID 26
|
|
}
|
|
|
|
ACTOR Peasant22 : Peasant 181
|
|
{
|
|
Game Strife
|
|
Translation 6
|
|
ConversationID 27
|
|
}
|
|
|