Garry's Mod

Garry's Mod

785 평점
SB Advanced Nextbots (Nextbot Base + Soldiers Nextbots Base)
2
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay
파일 크기
게시일
업데이트일
772.481 KB
2020년 6월 30일 오전 2시 39분
2024년 7월 6일 오전 7시 46분
업데이트 노트 23개 (보기)

다운로드 위해 구독하기
SB Advanced Nextbots (Nextbot Base + Soldiers Nextbots Base)

Shadow Bonnie (RUS)님의 1 모음집
PAYDAY 2: Default addons to create custom PD2
아이템 25개
설명
This base created to update default nextbot base primarily to easily create nextbots alike players.

Features of advanced nextbots

- They can hold weapons that have npc support. Also can hold few engine weapons (pistol, revolver, smg1, ar2, shotgun, crossbow). But you should understand that nextbots is not npc, some weapons that works with npcs can not work with that nextbots. This depends on how the weapon are programmed by the creator.

- You can control bot with third person camera. Start control using Context menu (Default button is C), press Right Mouse Button on bot and select "Drive". To stop control, press Suit Zoom button (By default its not binded! Look in settings to bind button).

- 3 default soldier nextbots: Follower, Friendly and Hostile. Soldier nextbots uses Soldier Base that based on Advanced Nextbots base.
Follower nextbot: friendly to you and friendly npcs, will shoot at hostile npcs, always trying follows you.
Friendly nextbot: Neutral to players, friendly to friendly npcs, hostile to hostile npcs and Hostile Soldier Nextbots.
Hostile nextbot: Neutral to players, hostile to friendly npcs and Friendly Soldier Nextbots, friendly to hostile npcs.

Other features (for developers)

- Activities (animations) based on player activities. That means you should use player models for bots, not npc models. Also activities will automatically change depending on the state of the bot (staying, crouching, running, jumping). Using task hooks you can change desired activity.

- Bots can use nodegraph navigation system if you set appropriate variable. Nodegraph pathfinding uses Capabilities, so you should change capabilities depending on what your bot should do.

- Behaviour of bots based on tasks. You can create list of tasks that can be started, completed, failed. Each task have callbacks. See Soldier Nextbot Base as example. Tasks allows you to make some actions at same time, like movement, shooting, enemy handling, etc.

- Every function in base is commented. To know what you should use you can see source code of base. This help you to create your bots.

Default console commands
Command
Default (min-max)
Realm
Description
sb_anb_drawpath
0 (0-1)
Server
Draws active bot path.

Default console commands (Soldier nextbots)
Command
Default (min-max)
Realm
Description
sb_advanced_nextbot_soldier_playerdisposition
0 (0-4)
Server
Defines player disposition for friendly/hostile bots: 0 - Neutral; 1 - Like; 2 - Hate; 3 - Like for friendly, hate for hostile; 4 - Hate for friendly, like for hostile.
sb_advanced_nextbot_soldier_usenodegraph
0 (0-1)
Server
Should bots use nodegraph or navmesh when finding path.

Nodegraph module console commands
Command
Default (min-max)
Realm
Description
sb_anb_nodegraph_accurategetnearestnode
0 (0-1)
Server
Defines GetNearestNode function behaviour. if 0, compares distances to nodes; if 1, uses DistanceToLine (line is link between two nodes), this is more expensive.
sb_anb_nodegraph_drawnodes
0 (0-2)
Server
Draws nodes and links ("developer" console command shouldn't equal to 0).
sb_anb_nodegraph_drawnodes_hull
HULL_HUMAN (HULL_HUMAN-NUM_HULLS)
Server
Changes links colors depending on the hull type.
sb_anb_nodegraph_pathdebug
0 (0-1)
Server
Like "nb_debug PATH", but for nodegraph PathFollower.
sb_anb_nodegraph_trivialcheck
1 (0-1)
Server
Allows to cut the route, simplifying the movement of the bot. This may reduce performance.
sb_anb_nodegraph_trivialcheck_debug
0 (0-1)
Server
Displays traces that performed for trivial path check.
sb_anb_nodegraph_getnearestnodevischeck
0 (0-1)
Server
Defines GetNearestNode function behaviour. If 1, then all nodes that not pass visible check will be skipped. Very big performance hit on maps with a large number of nodes.

Github page
After releasing nodegraph module as regular Lua script, addon was added to github. You can see source code, write about issues and pull requests here[github.com].
댓글 135
Cherry Lemon 2025년 8월 5일 오후 12시 11분 
how do you change weapons in drive mode?
Petra 2025년 3월 16일 오후 10시 15분 
all they do is walk towards me
alfie_wm2 2024년 11월 3일 오전 11시 55분 
So this is it, huh? The great grandfarther of hyper intelligent npcs. Neato.
浪里小神猫 2024년 8월 10일 오전 5시 51분 
A T-BUG is confirmed,plz fix it soon.:yoshino_charo:
Fusilier 2024년 3월 31일 오후 1시 54분 
This seems to break the css playermodels..
Sour 2023년 10월 15일 오후 10시 10분 
What causes a nodegraph to be marked as corrupt?
gm_Redlerman16 2023년 9월 29일 오전 12시 30분 
[SB Advanced Nextbots (Nextbot Base + Soldiers Nextbots Base)] lua/autorun/server/sb_anb_nodegraph.lua:1342: SBAdvancedNextbotNodeGraph: CreateLink: Node 13 has too many links
1. error - [C]:-1
2. ThrowError - lua/autorun/server/sb_anb_nodegraph.lua:269
3. CreateLink - lua/autorun/server/sb_anb_nodegraph.lua:1342
4. unknown - lua/autorun/server/sb_anb_nodegraph.lua:1450

found this error
Lombaxtard 2023년 8월 23일 오후 9시 39분 
Is there a way to change speed of every movement state of a bot? Also, is there a possibility to implement "aiming" animation state?
SamWiseRobert 2023년 7월 26일 오전 9시 20분 
does this have multiplayer support?
Polask 2023년 7월 4일 오전 10시 23분 
make them undoable pls