Jump to content

Blefty: Difference between revisions

From Kingpin Wiki
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
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Blefty left over from [[Lefty]]. Side man from [[BigWillie]]. Shortcut from Big is B so Blefty.
Blefty can not be found in any Kingpin [[maps|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:
Blefty can not be found in any Kingpin [[maps|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">
<syntaxhighlight lang="c">
Line 21: Line 22:
}
}
</syntaxhighlight>
</syntaxhighlight>
Was a old name for [[BigWillie]]?
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>

Latest revision as of 19:33, 4 April 2025

Blefty left over from Lefty. Side man from BigWillie. Shortcut from Big is B so Blefty. 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);

}