IPB

Welcome Guest ( Log In | Register )

> no Gravity Gun for bot ?, lost code ?
Salvax
post Feb 23 2007, 04:35 AM
Post #1


Advanced Member
***

Group: Members
Posts: 75
Joined: 14-February 07
Member No.: 1,034



bot can't hold a gravity gun even the bot profile is edited : weapon = weapon_physcannon

lost weapon code in some files of the source? blink.gif

i am doing some thing on checkstuck part of the codes in bot.cpp, trying if bot can use gravity gun to push the objects away, but i find bot can't even hold a gravity gun...*faint*
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
Salvax
post Feb 23 2007, 01:29 PM
Post #2


Advanced Member
***

Group: Members
Posts: 75
Joined: 14-February 07
Member No.: 1,034



so...no matter what i do, gravity gun will be replaced ?! *faint* ...sad.gif can i enable it ?

modify the code like this ?

QUOTE
void CHLDMBot :: modThink ()
{
// dont use physcannon for now... switch to pistol <-----------------------
if ( m_pPlayerInfo->GetWeaponName() && *(m_pPlayerInfo->GetWeaponName()) )
{
if ( !FStrEq(m_pProfile->getWeapon(),"default") && !FStrEq(m_pProfile->getWeapon(),m_pPlayerInfo->GetWeaponName()))
{
m_pController->SetActiveWeapon(m_pProfile->getWeapon());
}
}
}


PS:TESTed , worked !!! THX !

PS2:wait... bots won't pickup guns... sad.gif sad.gif sad.gif need ur help !

PS3:finally i find out , if we have gravity gun in hands, we won't automatically switch to the gun we just picked up. *faint*
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 21st August 2025 - 11:43 PM