![]() |
![]() |
Salvax |
![]()
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? ![]() 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* |
![]() ![]() |
Salvax |
![]()
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* ...
![]() 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... ![]() ![]() ![]() 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* |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 21st August 2025 - 11:43 PM |