.:: Bots United ::.  
filebase forums irc server wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps waypoints yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Programming
General Programming Help others and get yourself helped here!

Reply
 
Thread Tools
[HL Mod] C++ Scripting Help
Old
  (#1)
Bend3R
Member
 
Status: Offline
Posts: 50
Join Date: Jun 2005
Default [HL Mod] C++ Scripting Help - 08-02-2007

Hi, I need help with code line/s if you can.
I have a model with 11 different body sub-models and I don't know how to do
so the Plugin choose random sub-model from the model file.
What for lines do I need to add?

Code:
void CMZombie :: Spawn()
{
 Precache( );
 SET_MODEL(ENT(pev), "modelname.mdl");
 UTIL_SetSize( pev, VEC_HUMAN_HULL_MIN, VEC_HUMAN_HULL_MAX );
 
 pev->solid   = SOLID_SLIDEBOX;
 pev->movetype  = MOVETYPE_STEP;
 m_bloodColor  = BLOOD_COLOR_RED;
 pev->health   = gSkillData.zombieHealth;
 pev->view_ofs  = VEC_VIEW;// position of the eyes relative to monster's origin.
 m_flFieldOfView  = 0.5;// indicates the width of this monster's forward view cone ( as a dotproduct result )
 m_MonsterState  = MONSTERSTATE_NONE;
 m_afCapability  = bits_CAP_DOORS_GROUP;
 
.......
 
 MonsterInit();
}

Last edited by Bend3R; 08-02-2007 at 21:50..
   
Reply With Quote
Re: [HL Mod] C++ Scripting Help
Old
  (#2)
jeefo
ouch
 
jeefo's Avatar
 
Status: Offline
Posts: 445
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: [HL Mod] C++ Scripting Help - 09-02-2007

ou have different sequences of one model in one file ?

if yes, just set pev->sequence to sequence index you need.... (or random one)
   
Reply With Quote
Re: [HL Mod] C++ Scripting Help
Old
  (#3)
Bend3R
Member
 
Status: Offline
Posts: 50
Join Date: Jun 2005
Default Re: [HL Mod] C++ Scripting Help - 10-02-2007

its not sequency, its the body part, sub-models.

Last edited by Bend3R; 10-02-2007 at 10:38..
   
Reply With Quote
Re: [HL Mod] C++ Scripting Help
Old
  (#4)
Bend3R
Member
 
Status: Offline
Posts: 50
Join Date: Jun 2005
Default Re: [HL Mod] C++ Scripting Help - 10-02-2007

Tryed with
Code:
pev->body = -1;
but it changed to another body :/
want it to be random body parts.
   
Reply With Quote
Re: [HL Mod] C++ Scripting Help
Old
  (#5)
Bend3R
Member
 
Status: Offline
Posts: 50
Join Date: Jun 2005
Default Re: [HL Mod] C++ Scripting Help - 27-03-2007

Figured it out.
Thanks.
   
Reply With Quote
Re: [HL Mod] C++ Scripting Help
Old
  (#6)
jack34
Member
 
Status: Offline
Posts: 4
Join Date: Apr 2007
Default Re: [HL Mod] C++ Scripting Help - 05-04-2007

ooops
   
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com