Server: Precache step_sand.left/right, add to footsteps.sndshd.

Fix some botlib waypointing strings.
This commit is contained in:
Marco Cawthorne 2021-04-18 08:24:55 +02:00
parent da62296b9c
commit 27b5b59f0d
4 changed files with 22 additions and 5 deletions

View File

@ -163,6 +163,21 @@ step_slosh.right
sample player/pl_slosh4.wav
}
step_sand.left
{
attenuation static
footstep
sample player/pl_sand1.wav
sample player/pl_sand2.wav
}
step_sand.right
{
attenuation static
footstep
sample player/pl_sand3.wav
sample player/pl_sand4.wav
}
step_snow.left
{
attenuation static

View File

@ -278,7 +278,7 @@ Way_FlagAim(void)
for (int b = 0i; b < g_pWaypoints[g_way1].m_numNeighbours; b++) {
if (g_pWaypoints[g_way1].m_pNeighbour[b].m_iNode == g_way2) {
g_pWaypoints[g_way1].m_pNeighbour[b].m_iFlags |= LF_AIM;
env_message_single(self, "^2Walk-linked the two points!\n");
env_message_single(self, "^2Aim-linked the two points!\n");
}
}
} else {
@ -303,7 +303,7 @@ Way_FlagUse(void)
for (int b = 0i; b < g_pWaypoints[g_way1].m_numNeighbours; b++) {
if (g_pWaypoints[g_way1].m_pNeighbour[b].m_iNode == g_way2) {
g_pWaypoints[g_way1].m_pNeighbour[b].m_iFlags |= LF_USER;
env_message_single(self, "^2Walk-linked the two points!\n");
env_message_single(self, "^2Use-linked the two points!\n");
}
}
} else {

View File

@ -14,13 +14,13 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#define FN_UPDATE_IMGURL "https://www.frag-net.com/dl/img/%s.jpg"
#define FN_UPDATE_IMGURL "http://www.frag-net.com/dl/img/%s.jpg"
enum
{
GPMI_NAME, // name of the package, for use with the pkg command.
GPMI_NAME, // name of the package, for use with the pkg command.
GPMI_CATEGORY, // category text
GPMI_TITLE, // name of the package, for showing the user.
GPMI_TITLE, // name of the package, for showing the user.
GPMI_VERSION, // version info (may have multiple with the same name but different versions)
GPMI_DESCRIPTION, // some blurb
GPMI_LICENSE, // what license its distributed under

View File

@ -44,6 +44,8 @@ Footsteps_Init(void)
Sound_Precache("step_grate.right");
Sound_Precache("step_metal.left");
Sound_Precache("step_metal.right");
Sound_Precache("step_sand.left");
Sound_Precache("step_sand.right");
Sound_Precache("step_slosh.left");
Sound_Precache("step_slosh.right");
Sound_Precache("step_snow.left");