forked from UNLOZE/sm-plugins
ItemSpawn: Start with whiteknight. :P
This commit is contained in:
@@ -13,6 +13,7 @@ int g_iCounter = 0;
|
||||
#include "items\doghuman.inc"
|
||||
#include "items\tnt.inc"
|
||||
#include "items\vortigaunt.inc"
|
||||
#include "items\whiteknight.inc"
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
@@ -37,6 +38,7 @@ public void OnPluginStart()
|
||||
RegAdminCmd("sm_balrog", Command_Balrog, ADMFLAG_KICK);
|
||||
RegAdminCmd("sm_humandog", Command_HumanDog, ADMFLAG_KICK);
|
||||
RegAdminCmd("sm_vortigaunt", Command_Vortigaunt, ADMFLAG_KICK);
|
||||
RegAdminCmd("sm_whiteknight", Command_WhiteKnight, ADMFLAG_KICK);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
@@ -46,9 +48,6 @@ public void OnMapStart()
|
||||
{
|
||||
// Yeeaass (Physbox model)
|
||||
PrecacheModel("models/props/cs_militia/crate_extrasmallmill.mdl");
|
||||
|
||||
// Vortigaunt
|
||||
PrecacheModel("models/vortigaunt_slave.mdl");
|
||||
|
||||
// Balrog
|
||||
PrecacheModel("models/player/slow/amberlyn/lotr/balrog/balrog_rafuron_hannibal.mdl");
|
||||
@@ -68,19 +67,6 @@ public void OnMapStart()
|
||||
AddFileToDownloadsTable("materials/models/player/slow/amberlyn/lotr/balrog/slow_wings.vmt");
|
||||
AddFileToDownloadsTable("sound/unloze/balrog_scream.mp3");
|
||||
|
||||
// TNT
|
||||
PrecacheModel("models/props/furnitures/humans/barrel01b.mdl");
|
||||
AddFileToDownloadsTable("models/props/furnitures/humans/barrel01b.dx80.vtx");
|
||||
AddFileToDownloadsTable("models/props/furnitures/humans/barrel01b.dx90.vtx");
|
||||
AddFileToDownloadsTable("models/props/furnitures/humans/barrel01b.mdl");
|
||||
AddFileToDownloadsTable("models/props/furnitures/humans/barrel01b.phy");
|
||||
AddFileToDownloadsTable("models/props/furnitures/humans/barrel01b.sw.vtx");
|
||||
AddFileToDownloadsTable("models/props/furnitures/humans/barrel01b.vvd");
|
||||
AddFileToDownloadsTable("materials/models/barrel01b/wood_barrel01b.vmt");
|
||||
AddFileToDownloadsTable("materials/models/barrel01b/wood_barrel01b.vtf");
|
||||
AddFileToDownloadsTable("materials/models/barrel01b/wood_barrel01b_broken.vmt");
|
||||
AddFileToDownloadsTable("materials/models/barrel01b/wood_barrel01b_no_metal.vtf");
|
||||
|
||||
// Dog
|
||||
PrecacheModel("models/player/pil/re1/dog/dog_pil.mdl");
|
||||
AddFileToDownloadsTable("models/player/pil/re1/dog/dog_pil.dx80.vtx");
|
||||
@@ -102,6 +88,38 @@ public void OnMapStart()
|
||||
AddFileToDownloadsTable("models/poo/curlygpoo.vvd");
|
||||
AddFileToDownloadsTable("materials/models/poo/curlypoo.vmt");
|
||||
AddFileToDownloadsTable("materials/models/poo/curlypoo.vtf");
|
||||
|
||||
// TNT
|
||||
PrecacheModel("models/props/furnitures/humans/barrel01b.mdl");
|
||||
AddFileToDownloadsTable("models/props/furnitures/humans/barrel01b.dx80.vtx");
|
||||
AddFileToDownloadsTable("models/props/furnitures/humans/barrel01b.dx90.vtx");
|
||||
AddFileToDownloadsTable("models/props/furnitures/humans/barrel01b.mdl");
|
||||
AddFileToDownloadsTable("models/props/furnitures/humans/barrel01b.phy");
|
||||
AddFileToDownloadsTable("models/props/furnitures/humans/barrel01b.sw.vtx");
|
||||
AddFileToDownloadsTable("models/props/furnitures/humans/barrel01b.vvd");
|
||||
AddFileToDownloadsTable("materials/models/barrel01b/wood_barrel01b.vmt");
|
||||
AddFileToDownloadsTable("materials/models/barrel01b/wood_barrel01b.vtf");
|
||||
AddFileToDownloadsTable("materials/models/barrel01b/wood_barrel01b_broken.vmt");
|
||||
AddFileToDownloadsTable("materials/models/barrel01b/wood_barrel01b_no_metal.vtf");
|
||||
|
||||
// Vortigaunt
|
||||
PrecacheModel("models/vortigaunt_slave.mdl");
|
||||
|
||||
// WhiteKnight
|
||||
PrecacheModel("models/dog_jugger.mdl");
|
||||
AddFileToDownloadsTable("models/dog_jugger.dx80.vtx");
|
||||
AddFileToDownloadsTable("models/dog_jugger.dx90.vtx");
|
||||
AddFileToDownloadsTable("models/dog_jugger.mdl");
|
||||
AddFileToDownloadsTable("models/dog_jugger.sw.vtx");
|
||||
AddFileToDownloadsTable("models/dog_jugger.vvd");
|
||||
AddFileToDownloadsTable("materials/models/dog_gondor/dog_sheet.vmt");
|
||||
AddFileToDownloadsTable("materials/models/dog_gondor/dog_sheet.vtf");
|
||||
AddFileToDownloadsTable("materials/models/dog_gondor/dog_sheet_phong.vtf");
|
||||
AddFileToDownloadsTable("materials/models/dog_gondor/eyeglass.vmt");
|
||||
AddFileToDownloadsTable("materials/models/dog_gondor/eyeglass.vtf");
|
||||
AddFileToDownloadsTable("materials/models/dog_gondor/weapon107_000_001.vmt");
|
||||
AddFileToDownloadsTable("materials/models/dog_gondor/weapon107_000_001.vtf");
|
||||
AddFileToDownloadsTable("materials/models/dog_gondor/weapon107_000_002.vtf");
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
@@ -109,9 +127,9 @@ public void OnMapStart()
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
stock int CreateEntityAtOrigin(const char[] classname, const float origin[3])
|
||||
{
|
||||
int entity = INVALID_ENT_REFERENCE;
|
||||
if ((entity = CreateEntityByName(classname)) != INVALID_ENT_REFERENCE)
|
||||
DispatchKeyValueVector(entity, "origin", origin);
|
||||
int entity = CreateEntityByName(classname);
|
||||
|
||||
TeleportEntity(entity, origin, NULL_VECTOR, NULL_VECTOR);
|
||||
|
||||
return entity;
|
||||
}
|
||||
@@ -124,7 +142,7 @@ stock bool DispatchKeyFormat(int entity, const char[] key, const char[] value, a
|
||||
char buffer[1024];
|
||||
VFormat(buffer, sizeof(buffer), value, 4);
|
||||
|
||||
return DispatchKeyValue(entity, key, buffer);
|
||||
DispatchKeyValue(entity, key, buffer);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
@@ -157,16 +175,9 @@ stock void SetEntityBBox(int entity, const float mins[3], const float maxs[3])
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
stock void SetEntitySolid(int entity)
|
||||
stock void SetEntityProps(int entity)
|
||||
{
|
||||
SetEntProp(entity, Prop_Send, "m_nSolidType", 3);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
stock void SetEntityNodraw(int entity)
|
||||
{
|
||||
SetEntProp(entity, Prop_Send, "m_fEffects", 32);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user