[FilterScript] Record n Play (directly in-game)
#1

NPCPlayer
(play recorded playbacks directly in-game)
Information

This is a simple filterscript that allows you to record and play NPCs directly in-game. You can record yourself on foot and in vehicle, but only in separate recordings. In this version it's not possible to do continuous recording session, during which you could drive and walk, but maybe future version will make it possible.


Commands (Admin only)
  • /rec start - start recording player data
  • /rec stop - stop recording player data
  • /rec play - play endless playback
  • /rec delete - delete files

Download

Pastebin
Download (Windows only) (Update 1)
None of this would be possible without JaTochNietDan's Execute plugin.
  1. Download npc_rec.zip.
  2. Extract npc_rec.pwn into filterscripts directory.
  3. Open server.cfg and type npc_rec next to filterscripts.
  4. Don't forget to download execute plugin.
FAQ

Why isn't the NPC connecting to the server?
- make sure you have the execute plugin in the plugins directory.
- make sure you have "plugins exec" line in server.cfg.
- make sure "maxnpc" in server.cfg is set to 32 for example.
- make sure none of the scripts have return 0 under OnPlayerSpawn.

Changelog:

02/08/11:
Fixed a minor bug with vehicle spawning
Improved performance
If any bugs occur, report them here or via PM. Also make new suggestions.
Reply
#2

Useful!
Reply
#3

Yea pretty nice.
Reply
#4

Nice.
Reply
#5

can I get the .amx for this?
Reply
#6

Quote:
Originally Posted by Joey_euber
Посмотреть сообщение
can I get the .amx for this?
Compile it to get the .amx
Reply
#7

Gonna try it tomorrow!

Btw is it possible to cut a record into half or 60% for example fro the script?
Reply
#8

Quote:
Originally Posted by Snipa
Посмотреть сообщение
Compile it to get the .amx
I can't compile thats why I am asking for one
Reply
#9

@joey put
#include <exec>
at the top of the script

for me work fine,

but i have found a bug:
when i start a bot recorded with a car it spawns 2 car

and i have two suggestion:
-when a player go in a vehicle the recording mustnt stop but continue (same when player exit vehicle)
-an options to end the loop of the bot (Simple Kick(botid) ) /rec end [recid] then
"/rec stop" for terminate a recording
"/rec end" for terminate a bot loop

Good Job 10/10
Reply
#10

I found this mistake.

exec is not a function in the library. Maybe you wanted to define it as printf

pawn Код:
#define exec printf
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)