Frikbots & Skins
When I spawn them in QW the always use the base skin.
Moderator: Inside3D Admins
// FIXME: do teams properly
// note this has no effect on infokey
WriteByte(2, 92 ); // \
WriteByte(2, 115); // s
WriteByte(2, 107); // k
WriteByte(2, 105); // i
WriteByte(2, 110); // n
WriteByte(2, 92); // \
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 115); // s
WriteByte(2, 101); // e
WriteByte(2, 92); // \
WriteByte(2, 92 ); // \
WriteByte(2, 115); // s
WriteByte(2, 107); // k
WriteByte(2, 105); // i
WriteByte(2, 110); // n
WriteByte(2, 92); // \
if (somenumber == 0)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 115); // s
WriteByte(2, 101); // e
}
else if (somenumber == 1)
{
WriteByte(2, 102); // f
WriteByte(2, 111); // o
WriteByte(2, 111); // o
}
else if (somenumber == 2)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 114); // r
}
WriteByte(2, 92); // \
Supa wrote:First a disclaimer:
1) My only real experience in QW modding is from my stupid QW speedmod, FishQuake.
2) I'm not actually looking at the FBX code right now, just working from FrikaC's post, thusly I have no way of actualy checking wheter or not this will work.
3) I am a muppet.
That said:
So if you want one bot to use skin 'foo', you'd do:
Taking this further you could try this:
- Code:
WriteByte(2, 92 ); // \
WriteByte(2, 115); // s
WriteByte(2, 107); // k
WriteByte(2, 105); // i
WriteByte(2, 110); // n
WriteByte(2, 92); // \
if (somenumber == 0)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 115); // s
WriteByte(2, 101); // e
}
else if (somenumber == 1)
{
WriteByte(2, 102); // f
WriteByte(2, 111); // o
WriteByte(2, 111); // o
}
else if (somenumber == 2)
{
WriteByte(2, 98); // b
WriteByte(2, 97); // a
WriteByte(2, 114); // r
}
WriteByte(2, 92); // \
(And so on..)
Of course, I could be wrong. =)
Return to Artificial Intelligence
Users browsing this forum: No registered users and 2 guests