Raised This Month: $32 Target: $400
 8% 

Solved BOTs choose classes randomly [CZ]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 08-23-2022 , 13:42   BOTs choose classes randomly [CZ]
Reply With Quote #1

I just noticed that the BOTs in the base AMXX don't pick the Spetsnaz and Militia classes, only classes 1-4, could I have a plugin that makes them pick really random?

Edit: Solved
It's a BotProfile.db problem, in high difficulties, it stops selecting those classes, in any case the plugin corrects this.
Attached Files
File Type: sma Get Plugin or Get Source (CZ_Bot_Skin_on_Expert.sma - 29 views - 2.0 KB)
__________________
Extended Arm Weapon Skin v2.1 {16/Apr/23}
(Detect which class is and associate it with the corresponding arms)
SideWeapons v0.2 {01/Sep/22}
(New version of Back Weapons v1.87)


Last edited by SoulWeaver16; 08-24-2022 at 16:35. Reason: BOTs only choose those classes on Easy or Normal
SoulWeaver16 is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 08-23-2022 , 21:58   Re: BOTs choose classes randomly [CZ]
Reply With Quote #2

https://www.amxmodx.org/api/ns2amx/set_player_skin

get players only bots and set it to random on their first spawn... easy patch.
__________________
deprale is offline
Ketquangoaihanganh
New Member
Join Date: Aug 2022
Location: Tầng 5, Ṭa tháp N
Old 08-23-2022 , 22:15   Re: BOTs choose classes randomly [CZ]
Reply With Quote #3

HLV Erik ten Hag đă mắng học sinh là "rác rưởi" trong buổi tập sẵn sàng cho mùa giải mới của Man Utd.

cách đây không lâu, đoạn video clip do các CĐV khắc ghi được trong một buổi tập trước thềm mùa giải mới mang cảnh HLV Erik ten Hag gọi những học sinh là “rác” khi những cầu thủ không thể kiểm soát bóng tốt. "Cố giữ bóng đi. Hăy cố mà giữ lấy quả bóng, đồ rác rưởi", HLV Ten Hag hét lớn khi học sinh đang thực hiện những bài tập.
Xem trực tiếp lịch thi đấu ngoại hạng anh tối nay


Chiến lược gia người Hà Lan cho biết những cầu thủ của ông đă rất quyết tâm, nhưng vẫn chưa đạt được yêu cầu ông đặt ra. C̣n nhớ ở round thắng 3-1 trước Crystal Palace, khi thủ môn David de Gea chuyền dài thay v́ chuyền ngắn cho bằng hữu, HLV Ten Hag đă ngay tức th́ quát lớn bên trên sân: "Cậu đang làm cho cái quái ǵ vậy?"
truyền thông Anh cho biết Ten Hag muốn thiết lập những tiêu chuẩn mới ở Old Trafford. Ông muốn học sinh kiểm soát bóng phải chăng hơn, chuyền bóng lên phía bên trên nhiều hơn & thoát những t́nh huống pressing của đối thủ. Ông san sớt sở hữu báo chí: "Không với CLB nào muốn bị pressing khi đang cầm bóng ở sân nhà. ví như thoát được, đấy sẽ là điểm mạnh lớn. Để khiến được điều ấy, tôi cần cả đội phải vận động.”

Cựu HLV Ajax cũng nhấn mạnh không mang cầu thủ nào được mặc định mang tên trong đội h́nh chính của Man United, mà phải tự cố gắng để giành lấy suất thi đấu. Theo tiền vệ Bruno Fernandes, sự hà khắc and kỷ luật của vị tân HLV là điều tốt cho tập thể. "Chúng tôi đă thiếu tính kỷ luật lâu dài. Sự chuẩn chỉ & kỷ luật trong bóng đá là khôn xiết quan yếu.
Kỷ luật ko chỉ là cá tính thi đấu, tài năng chọn vị trí, các công tác cần khiến bên trên sân, mà nó c̣n biểu lộ bên ngoài sân cỏ. Đừng đi họp muộn, đừng vào ăn trễ giờ. Toàn đội cần tuân thủ giờ giấc và giả dụ ai ấy tới muộn, anh ta sẽ bị phạt", tiền vệ người nhân t́nh Đào Nha san sớt.


trên thị trường chuyển nhượng, MU đă đem về sân Old Trafford 3 bản giao kèo Tyrell Malacia, Christian Eriksen and Lisandro Martinez. BLĐ đội bóng vẫn nỗ lực đeo đuổi thương vụ Frenkie de Jong, nhưng vẫn giậm chân tại chỗ lúc tiền vệ người Hà Lan vẫn vướng mắc những lùm xùm về lương lậu ở Barca.



Kenhthethao.vn Tổng hợp tin tức thể thao, bóng đá, bảng xếp hạng, video Highlight giải Ngoại hạng anh,ket qua ngoai hang anh WC, Euro, TBN, Pháp, Đức, Ư được cập nhật liên tục 24h.
Công ty TNHH Truyền thông Tầm Nh́n Cộng
Địa chỉ: Tầng 5, Ṭa tháp Ngôi Sao - Star Tower, Dương Đ́nh Nghệ, Yên Hoà, Cầu Giấy, Hà Nội
Hotline: 0246 327 8425
Có thể bạn quan tâm: https://kenhthethao.vn/lich-thi-dau/...league-39.html
Email: [email protected]
Website: https://kenhthethao.vn
#Nguồn : kenhthethao.vn
Ketquangoaihanganh is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-23-2022 , 23:05   Re: BOTs choose classes randomly [CZ]
Reply With Quote #4

The base AMX Mod X doesn't have anything with bots.
__________________
fysiks is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 08-23-2022 , 23:14   Re: BOTs choose classes randomly [CZ]
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
The base AMX Mod X doesn't have anything with bots.
I should do more tests but with amx_off, I tried many times to fill the server with bots and those classes are never chosen, the plugins I use do not affect or should not affect the bots, so I do not know why it happens
__________________
Extended Arm Weapon Skin v2.1 {16/Apr/23}
(Detect which class is and associate it with the corresponding arms)
SideWeapons v0.2 {01/Sep/22}
(New version of Back Weapons v1.87)

SoulWeaver16 is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 08-23-2022 , 23:16   Re: BOTs choose classes randomly [CZ]
Reply With Quote #6

Quote:
Originally Posted by deprale View Post
https://www.amxmodx.org/api/ns2amx/set_player_skin

get players only bots and set it to random on their first spawn... easy patch.
I'll try that, thanks
__________________
Extended Arm Weapon Skin v2.1 {16/Apr/23}
(Detect which class is and associate it with the corresponding arms)
SideWeapons v0.2 {01/Sep/22}
(New version of Back Weapons v1.87)

SoulWeaver16 is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 08-24-2022 , 08:40   Re: BOTs choose classes randomly [CZ]
Reply With Quote #7

My mistake, all this time I played with the BOTs in Expert, and in that difficulty they don't choose those classes, only in Easy, AMXX had nothing to do with it, I'm sorry for the inconvenience, however, a plugin that makes them choose randomly so as not to having to edit each entry in the BotProfile.db would solve the problem.
I have this provided to me:
Quote:
#include amxmodx
#include cstrike

new const szRandomSkinT[5][] =
{
"arctic",
"guerilla",
"leet",
"militia",
"terror"
}

new const szRandomSkinCT[5][] =
{
"gign",
"gsg9",
"sas",
"urban",
"spetsnaz"
}

public plugin_init()
{
register_plugin("CZ Bot Skin", "1.0", "KayDee")
register_logevent( "LogEvent_JoinTeam", 3, "1=joined team" )
}

public LogEvent_JoinTeam()
{
new id = GetLogUserIndex()

if(!is_user_bot(id)) return PLUGIN_CONTINUE

static szTeam[2]
read_logargv( 2, szTeam, 1 )
switch( szTeam[0] )
{
case 'T': cs_set_user_model(id, szRandomSkinT[random_num(0, 5)])
case 'C': cs_set_user_model(id, szRandomSkinCT[random_num(0, 5)])
}
return PLUGIN_CONTINUE
}

GetLogUserIndex()
{
static szLogUser[80], szName[32]
read_logargv( 0, szLogUser, charsmax( szLogUser ) )
parse_loguser( szLogUser, szName, charsmax( szName ) )
return get_user_index( szName )
}
It is right?
How can I make it respect the VIP and not replace their model?

Last edited by SoulWeaver16; 08-24-2022 at 08:53.
SoulWeaver16 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 08-24-2022 , 10:51   Re: BOTs choose classes randomly [CZ]
Reply With Quote #8

Attached the requested plugin.
Attached Files
File Type: sma Get Plugin or Get Source (cz_bot_skin.sma - 29 views - 2.1 KB)
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode