Some QUAKED stuff, tiny fixes.
This commit is contained in:
parent
60e39270ab
commit
84bcc183ec
10 changed files with 85 additions and 12 deletions
2
Makefile
2
Makefile
|
@ -20,7 +20,7 @@ RADIANT_DEF="$(NUCLIDE_DIR)/ThirdParty/gtkradiant/install/installs/$(NAME)Pack/i
|
||||||
|
|
||||||
NRC_GAME="$(NUCLIDE_DIR)/ThirdParty/netradiant-custom/install/gamepacks/games/$(NAME).game"
|
NRC_GAME="$(NUCLIDE_DIR)/ThirdParty/netradiant-custom/install/gamepacks/games/$(NAME).game"
|
||||||
NRC_GAMEDIR="$(NUCLIDE_DIR)/ThirdParty/netradiant-custom/install/gamepacks/$(NAME).game/$(GAME)/"
|
NRC_GAMEDIR="$(NUCLIDE_DIR)/ThirdParty/netradiant-custom/install/gamepacks/$(NAME).game/$(GAME)/"
|
||||||
NRC_DEF="$(NRC_GAMEDIR)/entities.ent"
|
NRC_DEF="$(NRC_GAMEDIR)/entities.def"
|
||||||
NRC_SYNAPSE="$(NRC_GAMEDIR)/../default_build_menu.xml"
|
NRC_SYNAPSE="$(NRC_GAMEDIR)/../default_build_menu.xml"
|
||||||
|
|
||||||
EDITOR_QBSP="$(ARGSTR)TEMPLATEenginepath/qbsp"
|
EDITOR_QBSP="$(ARGSTR)TEMPLATEenginepath/qbsp"
|
||||||
|
|
|
@ -16,9 +16,9 @@ then
|
||||||
do
|
do
|
||||||
cd "$(dirname "$QEDMAP")"
|
cd "$(dirname "$QEDMAP")"
|
||||||
MAPFILE="$(basename "$QEDMAP")"
|
MAPFILE="$(basename "$QEDMAP")"
|
||||||
PATH="$PATH:$OLDDIR" qbsp -wadpath "$CWD/$GAMEDIR" "$MAPFILE"
|
LD_LIBRARY_PATH="$CWD" PATH="$PATH:$OLDDIR" qbsp -wadpath "$CWD/$GAMEDIR" "$MAPFILE"
|
||||||
PATH="$PATH:$OLDDIR" qvis "$MAPFILE"
|
LD_LIBRARY_PATH="$CWD" PATH="$PATH:$OLDDIR" qvis "$MAPFILE"
|
||||||
PATH="$PATH:$OLDDIR" qrad -extra4 "$MAPFILE"
|
LD_LIBRARY_PATH="$CWD" PATH="$PATH:$OLDDIR" qrad -extra4 "$MAPFILE"
|
||||||
cd "$OLDDIR"
|
cd "$OLDDIR"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,20 @@ build_wads()
|
||||||
|
|
||||||
if [ ! "$DIRNAME" = "." ]
|
if [ ! "$DIRNAME" = "." ]
|
||||||
then
|
then
|
||||||
echo "$DIRNAME"
|
if [ -f "$WADDIR/WAD3" ]
|
||||||
imgtool --palette ../gfx/palette.lmp --genwad2 ../"$DIRNAME".wad ./"$DIRNAME"
|
then
|
||||||
|
printf "WAD3 building %s:\n" "$DIRNAME"
|
||||||
|
imgtool --genwad3 ../"$DIRNAME".wad ./"$DIRNAME"
|
||||||
|
else
|
||||||
|
if [ -f "../gfx/palette.lmp" ]
|
||||||
|
then
|
||||||
|
printf "WAD2 Building %s:\n" "$DIRNAME"
|
||||||
|
imgtool --palette ../gfx/palette.lmp --genwad2 ../"$DIRNAME".wad ./"$DIRNAME"
|
||||||
|
else
|
||||||
|
printf "WAD2 (using Quake palette) building %s:\n" "$DIRNAME"
|
||||||
|
imgtool --genwad2 ../"$DIRNAME".wad ./"$DIRNAME"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,13 +14,16 @@ ent_for_mod()
|
||||||
echo '' > "$ENT_OUTFILE"
|
echo '' > "$ENT_OUTFILE"
|
||||||
|
|
||||||
echo "Scanning for definitions inside the game directory."
|
echo "Scanning for definitions inside the game directory."
|
||||||
find "$CWD/$1/src/" -type f \( -iname \*.qc \) | while read EDEF_N; do
|
find "$CWD/src/" -type f \( -iname \*.qc \) | while read EDEF_N; do
|
||||||
echo "... $EDEF_N"
|
echo "... $EDEF_N"
|
||||||
sed -n '/\/*!QUAKED/,/*\//p' $EDEF_N >> "$ENT_OUTFILE"
|
sed -n '/\/*QUAKED/,/*\//p' $EDEF_N >> "$ENT_OUTFILE"
|
||||||
# fix doxygen markup
|
|
||||||
done;
|
done;
|
||||||
|
|
||||||
sed -i 's/*!QUAKED/*QUAKED/g' "$ENT_OUTFILE"
|
echo "Scanning for definitions inside the game directory."
|
||||||
|
find "$CWD/$1/src/" -type f \( -iname \*.qc \) | while read EDEF_N; do
|
||||||
|
echo "... $EDEF_N"
|
||||||
|
sed -n '/\/*QUAKED/,/*\//p' $EDEF_N >> "$ENT_OUTFILE"
|
||||||
|
done;
|
||||||
|
|
||||||
cat "$CWD/Tools/base_entities.def" >> $ENT_OUTFILE
|
cat "$CWD/Tools/base_entities.def" >> $ENT_OUTFILE
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,4 +9,12 @@ void idFuncCroucharea::idFuncCroucharea( void ) {
|
||||||
SetModel(GetModel()); /* relink with the above properties */
|
SetModel(GetModel()); /* relink with the above properties */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*QUAKED func_croucharea (1 0 0) ?
|
||||||
|
# OVERVIEW
|
||||||
|
Crouch area. Will become non-solid when the player is crouched.
|
||||||
|
|
||||||
|
# KEYS
|
||||||
|
- "targetname" : Name
|
||||||
|
|
||||||
|
*/
|
||||||
LINK_ENTITY_TO_CLASS(func_croucharea, idFuncCroucharea)
|
LINK_ENTITY_TO_CLASS(func_croucharea, idFuncCroucharea)
|
|
@ -126,4 +126,16 @@ void ncFuncDoor::MoverFinishesMoving( void ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*QUAKED func_door (0 .5 .8) ? STARTOPEN x DONTLINK x x TOGGLE
|
||||||
|
# OVERVIEW
|
||||||
|
Door that moves along an axis.
|
||||||
|
|
||||||
|
# KEYS
|
||||||
|
- "targetname" : Name
|
||||||
|
- "angles" : Movement direction.
|
||||||
|
- "speed" : Movement speed in units per second.
|
||||||
|
- "wait" : Wait this many seconds before returning. -1 means wait infinitely.
|
||||||
|
- "lip" : Leave this many units of the door showing.
|
||||||
|
|
||||||
|
*/
|
||||||
LINK_ENTITY_TO_CLASS( func_door, ncFuncDoor )
|
LINK_ENTITY_TO_CLASS( func_door, ncFuncDoor )
|
|
@ -13,4 +13,12 @@ void idFuncIllusionary::idFuncIllusionary( void ) {
|
||||||
SetAbsoluteLightlevel(0.1);
|
SetAbsoluteLightlevel(0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*QUAKED func_illusionary (0 .5 .8) ?
|
||||||
|
# OVERVIEW
|
||||||
|
Non-solid wall.
|
||||||
|
|
||||||
|
# KEYS
|
||||||
|
- "targetname" : Name
|
||||||
|
|
||||||
|
*/
|
||||||
LINK_ENTITY_TO_CLASS(func_illusionary, idFuncIllusionary)
|
LINK_ENTITY_TO_CLASS(func_illusionary, idFuncIllusionary)
|
|
@ -9,4 +9,12 @@ void idFuncWall::idFuncWall( void ) {
|
||||||
SetModel(GetModel()); /* relink with the above properties */
|
SetModel(GetModel()); /* relink with the above properties */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*QUAKED func_wall (0 .5 .8) ?
|
||||||
|
# OVERVIEW
|
||||||
|
Solid wall.
|
||||||
|
|
||||||
|
# KEYS
|
||||||
|
- "targetname" : Name
|
||||||
|
|
||||||
|
*/
|
||||||
LINK_ENTITY_TO_CLASS(func_wall, idFuncWall)
|
LINK_ENTITY_TO_CLASS(func_wall, idFuncWall)
|
|
@ -6,6 +6,17 @@ void idNull::idNull( void ) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*QUAKED info_null (0 .5 0) (-4 -4 -4) (4 4 4)
|
||||||
|
|
||||||
|
*/
|
||||||
LINK_ENTITY_TO_CLASS(info_null, idNull)
|
LINK_ENTITY_TO_CLASS(info_null, idNull)
|
||||||
|
|
||||||
|
/*QUAKED info_notnull (0 .5 0) (-4 -4 -4) (4 4 4)
|
||||||
|
|
||||||
|
*/
|
||||||
LINK_ENTITY_TO_CLASS(info_notnull, idNull)
|
LINK_ENTITY_TO_CLASS(info_notnull, idNull)
|
||||||
|
|
||||||
|
/*QUAKED info_teleport_destination (.5 .5 .5) (-8 -8 -8) (8 8 32)
|
||||||
|
|
||||||
|
*/
|
||||||
LINK_ENTITY_TO_CLASS(info_teleport_destination, idNull)
|
LINK_ENTITY_TO_CLASS(info_teleport_destination, idNull)
|
|
@ -23,7 +23,18 @@ ncEntity ncPlayerStart::MovePlayerToStart( ncPlayer player ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*QUAKED info_player_start (1 0 0) (-16 -16 -24) (16 16 32)
|
||||||
|
*/
|
||||||
LINK_ENTITY_TO_CLASS(info_player_start, ncPlayerStart)
|
LINK_ENTITY_TO_CLASS(info_player_start, ncPlayerStart)
|
||||||
|
|
||||||
|
/*QUAKED info_player_deathmatch (1 0 1) (-16 -16 -24) (16 16 32)
|
||||||
|
*/
|
||||||
LINK_ENTITY_TO_CLASS(info_player_deathmatch, ncPlayerStart)
|
LINK_ENTITY_TO_CLASS(info_player_deathmatch, ncPlayerStart)
|
||||||
|
|
||||||
|
/*QUAKED info_player_coop (1 0 1) (-16 -16 -24) (16 16 32)
|
||||||
|
*/
|
||||||
LINK_ENTITY_TO_CLASS(info_player_coop, ncPlayerStart)
|
LINK_ENTITY_TO_CLASS(info_player_coop, ncPlayerStart)
|
||||||
|
|
||||||
|
/*QUAKED info_player_start2 (1 0 0) (-16 -16 -24) (16 16 32)
|
||||||
|
*/
|
||||||
LINK_ENTITY_TO_CLASS(info_player_start2, ncPlayerStart)
|
LINK_ENTITY_TO_CLASS(info_player_start2, ncPlayerStart)
|
Loading…
Reference in a new issue