Re: [hlcoders] Unique sci skins

2002-10-27 Thread Cortex
The different scientists' skin are tied up into four submodels. So, in your
code, you only have to do :
SetBodygroup( void *pmodel, entvars_t *pev, int iGroup, int iValue )

with the correct pmodel, pev, iGroup and iValue.

iValue should have a value between 0 and 3 (or 1 and 4, you'll have to
test). For the scientist model, the group which controls the head is the
second one. So, iGroup could be either 1 or 2 (do we begin at 0 ? you'll
have to test too). pev is of course pScientist-pev. pmodel can be found
using :

GET_MODEL_PTR (ENT(pev));

here you are ;) I hope I've good understood your question and that it'll
help
;)

  - Cortex : HL ALBATOR coder  mapper
  - [EMAIL PROTECTED]  ICQ : 71548738


Le Sunday, October 27, 2002 4:56 PM [GMT+0100=CET], brian c.strider
[EMAIL PROTECTED] me disait :

 Hello,

 I was wondering if anyone knew how to edit a scientist entity so that
 he could have a different skin? I would like to have various
 scientists in the same level with different skins, would anyone know
 a way to code this in or is it allready possible and I'm just
 overlooking it.

 My guess was to add the command body 1,2,3.. in the sci's smart
 edit mode, but i have no idea, thanks in advance folks.

 Brian Striker2 Strider



 ___
 To unsubscribe, edit your list preferences, or view the list
 archives, please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders



___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




Re: [hlcoders] Unique sci skins

2002-10-27 Thread Ryan \Professional Victim\ Desgroseilliers
There's already an entry in the scientist's properties in the FGD called
Body with the preset options provided in the default halflife.fgd file (if
you're doing this for a different mod than vanilla Half-Life, they may be
using a different model).  You can add 4 to any of the values to get the
body with the needle already pulled out (although this is usually handled
automatically in the code).

I'm guessing this is what you wanted to know?

- Original Message -
From: brian c.strider [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, October 27, 2002 7:56 AM
Subject: [hlcoders] Unique sci skins


Hello,

I was wondering if anyone knew how to edit a scientist entity so that he
could have a different skin? I would like to have various scientists in the
same level with different skins, would anyone know a way to code this in or
is it allready possible and I'm just overlooking it.

My guess was to add the command body 1,2,3.. in the sci's smart edit
mode, but i have no idea, thanks in advance folks.

Brian Striker2 Strider



___
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



___
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders