*
 
  Home Help Arcade Search Login Register  
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 09, 2010, 09:55:17 PM

Login with username, password and session length
Search:
    Advanced search
19066 Posts in 2164 Topics by 763 Members
Latest Member: Toxin Tractor
Donations Here please Video Game Rentals Delivered to Your Door -=SERVERS=-

Ventrilo
ventrilo.necrophix.com:4559


Pages: [1]   Go Down
  Print  
Author Topic: valentine health pack models ready - need help getting them into game!!!  (Read 98 times)
Sack_Fungus
Donator
Conscript
*

Karma: +4/-0
Offline Posts: 17


« on: February 07, 2010, 02:13:48 AM »

Mammal was going to convert these models, but he has way too much going on atm.

Mammal requested me to create 3 valentine themed models to replace the health packs in the game. I have the 3 models created and ready to go. If you need any changes to the naming or what-not's please let me know ASAP.

download: http://3dautosports.com/clients/necrophix/



Logged
Marow
Veteran
*****

Karma: +4/-12
Offline Posts: 128


Soldier, Scout, Spy = The rocking S-trio


« Reply #1 on: February 07, 2010, 06:57:19 AM »

;_;
Logged

Soldier, Scout, Spy = The rocking S-trio
Oh, and I play L4D too.
Nut
LOLSUP
Administrator
Veteran
*

Karma: +65535/-65535
Offline Posts: 282


No Hax. Just Pro.


WWW
« Reply #2 on: February 07, 2010, 10:58:24 AM »

omg sweet.

EDIT: This is what it looks like in game.



« Last Edit: February 07, 2010, 11:29:21 AM by Nut » Logged


     
JAWSH
Veteran
*****

Karma: +1351/-43
Online Posts: 321


Antagonist.


« Reply #3 on: February 07, 2010, 11:27:09 AM »

Holy crap.
These look so good!  Nice job!
Logged

In regione caecorum rex est luscus.
Sack_Fungus
Donator
Conscript
*

Karma: +4/-0
Offline Posts: 17


« Reply #4 on: February 07, 2010, 11:39:28 AM »

Great stuff. It looks like the middle pack is a bit small. Question, did you just replace the mesh, or is that a mod that can be downloaded. If so could you please share it out?

Thanks, Mike
Logged
Nut
LOLSUP
Administrator
Veteran
*

Karma: +65535/-65535
Offline Posts: 282


No Hax. Just Pro.


WWW
« Reply #5 on: February 07, 2010, 11:43:44 AM »

Its a plugin I made for sourcemod

Code:
#include <sourcemod>
#include <sdktools>

static const String:EntityClassNames[3][] =
{
"item_healthkit_full",
"item_healthkit_medium",
"item_healthkit_small"
}

static const String:EntityModelReplacement[3][] =
{
"models/necrophix_valentine/necrophix_valentine_lg.mdl",
"models/necrophix_valentine/necrophix_valentine_mid.mdl",
"models/necrophix_valentine/necrophix_valentine_sm.mdl"
}

public Plugin:myinfo =
{
name = "Valentines Day Items!",
author = "Nut",
description = "",
version = "0.1",
url = ""
}

public OnPluginStart()
HookEventEx("teamplay_round_start", event_RoundStart, EventHookMode_PostNoCopy);

public OnMapStart()
for (new i = 0; i < 3; i++)
{
PrintToServer("PRECACHING %s", EntityModelReplacement[i]);
PrecacheModelResources(EntityModelReplacement[i]);
}

public Action:event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
new ent = -1;
for (new i = 0; i < 3; i++)
while((ent = FindEntityByClassname(ent, EntityClassNames[i])) != -1)
SetEntityModel(ent, EntityModelReplacement[i]);
}

//Stocks from Presents
stock PrecacheModelResources(String:strFile[])
{
decl String:strBuffer[PLATFORM_MAX_PATH];
decl Handle:hStream;

Format(strBuffer, sizeof(strBuffer), "%s.res", strFile);
if ((hStream = OpenFile(strBuffer, "r")) == INVALID_HANDLE)
return;

while(!IsEndOfFile(hStream))
{
ReadFileLine(hStream, strBuffer, sizeof(strBuffer));
CleanString(strBuffer);
if (FileExists(strBuffer, true) || FileExists(strBuffer, false))
{
if (StrContains(strBuffer, ".vmt", false) != -1)      PrecacheDecal(strBuffer, true);
else if (StrContains(strBuffer, ".mdl", false) != -1) PrecacheModel(strBuffer, true);
else if (StrContains(strBuffer, ".pcf", false) != -1) PrecacheGeneric(strBuffer, true);
AddFileToDownloadsTable(strBuffer);
}
}
}

stock PrecacheSoundResources(String:strFile[])
{
    decl String:strBuffer[PLATFORM_MAX_PATH];
    Format(strBuffer, sizeof(strBuffer), "sound/%s", strFile);
   
    PrecacheSound(strFile, true);
    AddFileToDownloadsTable(strBuffer);
}

stock CleanString(String:strBuffer[])
{
    new iLength = strlen(strBuffer);
    for (new iPos=0; iPos<iLength; iPos++)
        switch(strBuffer[iPos])
{
            case '\r', '\n', '\t': strBuffer[iPos] = ' ';
}
    TrimString(strBuffer);
}
Logged


     
Sack_Fungus
Donator
Conscript
*

Karma: +4/-0
Offline Posts: 17


« Reply #6 on: February 07, 2010, 11:59:42 AM »

sweet, I dont know how to use it, but people in the know should know what to do with this correct?

BTW, I also uploaded a 2nd version with a larger mid pack.

Mike
Logged
BloodySharpie
Veteran
*****

Karma: +17/-27
Offline Posts: 191



« Reply #7 on: February 07, 2010, 03:08:59 PM »

You should make roses for the ammo packs. XD
Logged

I watch FOX News. Deal with it.
Soulwynd
Veteran
*****

Karma: +10/-10
Offline Posts: 233


« Reply #8 on: February 07, 2010, 03:45:55 PM »

You should make roses for the ammo packs. XD
Wow, I thought the same thing. xD
Logged

Pages: [1]   Go Up
  Print  
  
Jump to:  

Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Alienation design by Bloc | XHTML | CSS
Page created in 0.232 seconds with 19 queries.