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
Cheeseh
post Feb 23 2007, 12:29 PM
Post #2


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(Salvax @ Feb 23 2007, 04:35 AM) *

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*


Physcannon was removed, see HLDMBot :: modthink

CODE


void CHLDMBot :: modThink ()
{
    // dont use physcannon for now... switch to pistol <-----------------------
    if ( m_pPlayerInfo->GetWeaponName() && *(m_pPlayerInfo->GetWeaponName()) )
    {
        if ( !strcmp("weapon_physcannon",m_pPlayerInfo->GetWeaponName()) ) //<---------------------
        {            
            m_pController->SetActiveWeapon("weapon_pistol");    // <--------------------- overrides physcannon
        }
        else if ( !FStrEq(m_pProfile->getWeapon(),"default") && !FStrEq(m_pProfile->getWeapon(),m_pPlayerInfo->GetWeaponName()))
        {
            m_pController->SetActiveWeapon(m_pProfile->getWeapon());
        }
    }
}
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:44 PM