View Single Post
Plugin Info:     Modification:          Category:          Approver:   Xanimos (85)
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 07-15-2006 , 18:59   Civilian NPCs (TSRP)
Reply With Quote #1

-> Description
Allows TSRP server owners to make "living" people into their maps (well, they just walk around and chat if its enabled).


-> Requirements
Amx Mod X v1.75 and fakemeta-module enabled (may work on older versions, but untested).


-> Cvars & commands:
npc_health - health given to npcs on spawn, def: 100
npc_walkspeed - max. walking speed, def: 70
npc_turnspeed - turning speed (degrees per frame), def: 2.0
npc_stepsize - step up onto ledges if gets stuck, def: 15.0
npc_bodydisappear - delay for dead bodies to be removed, def: 30.0
npc_recreatetime - delay for respawning dead npcs, def: 30.0
npc_chatinterval - min. time npcs have to wait between chats, def: 20.0
npc_chatrandomity - randomizes chatinterval, def: 15.0
npc_chatprobability - chance of npc to chat (%), def: 15
npc_godmode - turn npc godmode on/off, def: 0
npc_chattoggle - turn npc chatting on/off, def: 1

amx_npcwaypoint - open waypointmenu to edit waypoints (req. flag "m")


-> Usage:
First you need to create waypoints for the map, this is done by first typing amx_npcwaypoint into your console and a menu pops up. Press #1 to create a new character entry, and then use #5 to make a path of waypoints for the npc, note that you may only have MAX_WAYPOINTS (defined in civilian_wps, def: 50) waypoints per entry.
Use #2 and #3 to browse through entries and edit/delete them if needed. When done, press #6 to save all entries into: amxmodx/data/waypoints/<mapname>.txt and then restart the server to add npcs to the paths (they spawn to the first wp).


-> Notes:
If you raise i.e. the MAX_WAYPOINTS definition, remember to raise it in the other plugin too.


-> Changelog:
v1.00 - Initial release
v1.01 - Added a gravity fix

-> Credits:
Karko - thanks for the idea, addon-suggestions, chat-texts and testing
Attached Files
File Type: zip civilian_npc.zip (8.6 KB, 2184 views)
File Type: sma Get Plugin or Get Source (civilian_npc.sma - 3456 views - 15.1 KB)
File Type: sma Get Plugin or Get Source (civilian_wps.sma - 2962 views - 7.4 KB)
__________________
plop

Last edited by p3tsin; 07-22-2006 at 08:20.
p3tsin is offline