Raised This Month: $12 Target: $400
 3% 

Civilian NPCs (TSRP)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   The Specialists        Category:   General Purpose        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, 2173 views)
File Type: sma Get Plugin or Get Source (civilian_npc.sma - 3420 views - 15.1 KB)
File Type: sma Get Plugin or Get Source (civilian_wps.sma - 2950 views - 7.4 KB)
__________________
plop

Last edited by p3tsin; 07-22-2006 at 08:20.
p3tsin is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 07-15-2006 , 19:08   Re: Civilian NPCs (TSRP)
Reply With Quote #2

heres a screenshot (its a bit big, so didnt want to use [ img ]):
http://users.pelikaista.net/~p3tsin/..._lobby0000.jpg

feel free to post your custom waypoints and chat texts into this thread and ill put them here
__________________
plop
p3tsin is offline
Karko
Junior Member
Join Date: Jul 2006
Location: Finland
Old 07-15-2006 , 19:08   Re: Civilian NPCs (TSRP)
Reply With Quote #3

Ha, good job making it true from a silly suggestion.
Beta testings showed good results in TS.
__________________
Karko is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 07-15-2006 , 19:32   Re: Civilian NPCs (TSRP)
Reply With Quote #4

Cool idea. Can they see if someone has been killed? i.e. I kill a cop, and I am near NPC, it is announced either in Chat that NPC name has seen ME kill BLANK. If not, its a suggestion if your willing to take it . +karma

EDIT: Doesn't work in 1.01, 20 errors.......
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.

Last edited by Lord_Destros; 04-18-2009 at 22:08.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Shurik3n
Member
Join Date: Feb 2006
Old 07-15-2006 , 20:04   Re: Civilian NPCs (TSRP)
Reply With Quote #5

Quote:
Originally Posted by p3tsin
-> Requirements
Amx Mod X v1.75 and fakemeta-module enabled
Quote:
Originally Posted by Lord_Destros
EDIT: Doesn't work in 1.01, 20 errors.......
__________________
+Karma if I helped.
Shurik3n is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 07-15-2006 , 21:49   Re: Civilian NPCs (TSRP)
Reply With Quote #6

Very nice idea. Will add this.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-16-2006 , 01:06   Re: Civilian NPCs (TSRP)
Reply With Quote #7

Wow. GREAT work. I usually test all the new submission plugins to ensure that they actually work, but from what people say i guess it should (too lazy to install TS too lol). Good job.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
sub
Senior Member
Join Date: Nov 2004
Location: Morristown, New Jersey
Old 07-17-2006 , 12:17   Re: Civilian NPCs (TSRP)
Reply With Quote #8

cool im gonna use it on city17/14
sub is offline
Send a message via AIM to sub Send a message via MSN to sub
Thriller
Junior Member
Join Date: Jul 2006
Old 07-18-2006 , 09:51   Re: Civilian NPCs (TSRP)
Reply With Quote #9

wow
Thriller is offline
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 07-19-2006 , 20:28   Re: Civilian NPCs (TSRP)
Reply With Quote #10

Sometimes the NPC's get stuck when they spawn, someone know how to fix this?
__________________
+karma if I am helpful to you.
I am one in a few million.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Reply


Thread Tools
Display Modes

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 10:13.


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