Blefty: Difference between revisions
Appearance
Created page with "Blefty can not be found in any Kingpin map but can be found in the [https://www.kingpin.info/download/index.php?dir=kingpin/server/official/sdk/&file=kpsdk.zip SDK] ep_shipyards.c: <syntaxhighlight lang="c"> if (self->name_index == NAME_BLEFTY) { if (!(player->episode_flags & EP_SY_GOFIND_BITCH)) { EP_Skidrow_Register_EPFLAG (player, EP_SY_GOFIND_BITCH); Voice_Specific (self, player, sy_lefty, 3); } else if (!(player->episode_flags & EP_SY_FOUND_..." |
No edit summary |
||
Line 20: | Line 20: | ||
} | } | ||
</syntaxhighlight> | |||
and | |||
<syntaxhighlight lang="c"> | |||
/*QUAKED ai_sy_blefty (.5 .5 1) ? | |||
blefty unlink | |||
*/ | |||
void ai_sy_blefty_touch (edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf) | |||
{ | |||
edict_t *BLefty; | |||
if (!(other->client)) | |||
return; | |||
if (other->episode_flags & EP_SY_FOUND_BITCH) | |||
{ | |||
BLefty = EP_GetCharacter (NAME_BLEFTY); | |||
if (BLefty) | |||
gi.unlinkentity (BLefty); | |||
self->touch = NULL; | |||
} | |||
} | |||
void SP_sy_blefty ( edict_t *ent ) | |||
{ | |||
if (deathmatch->value) | |||
{ | |||
G_FreeEdict(ent); | |||
return; | |||
} | |||
ent->solid = SOLID_TRIGGER; | |||
ent->touch = ai_sy_blefty_touch; | |||
ent->svflags |= SVF_NOCLIENT; | |||
gi.setmodel (ent, ent->model); | |||
gi.linkentity (ent); | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Was a old name for [[BigWillie]]? | Was a old name for [[BigWillie]]? |
Revision as of 00:29, 27 March 2025
Blefty can not be found in any Kingpin map but can be found in the SDK ep_shipyards.c:
if (self->name_index == NAME_BLEFTY)
{
if (!(player->episode_flags & EP_SY_GOFIND_BITCH))
{
EP_Skidrow_Register_EPFLAG (player, EP_SY_GOFIND_BITCH);
Voice_Specific (self, player, sy_lefty, 3);
}
else if (!(player->episode_flags & EP_SY_FOUND_BITCH))
{
// hey your back without lizzy
Voice_Random (self, player, sy_lefty, 3);
}
else if (player->episode_flags & EP_SY_FOUND_BITCH)
{
Voice_Random (self, player, &sy_lefty[3], 2);
}
return (0);
}
and
/*QUAKED ai_sy_blefty (.5 .5 1) ?
blefty unlink
*/
void ai_sy_blefty_touch (edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
{
edict_t *BLefty;
if (!(other->client))
return;
if (other->episode_flags & EP_SY_FOUND_BITCH)
{
BLefty = EP_GetCharacter (NAME_BLEFTY);
if (BLefty)
gi.unlinkentity (BLefty);
self->touch = NULL;
}
}
void SP_sy_blefty ( edict_t *ent )
{
if (deathmatch->value)
{
G_FreeEdict(ent);
return;
}
ent->solid = SOLID_TRIGGER;
ent->touch = ai_sy_blefty_touch;
ent->svflags |= SVF_NOCLIENT;
gi.setmodel (ent, ent->model);
gi.linkentity (ent);
}
Was a old name for BigWillie?