Ghost Recorder
4 Attachment(s)
Ghost Recorder
TeddyDesTodes 2009 .: Description / Features :. This plugin let player record their movements and saves them for later replay this is useful for jumping against urself on kreedzmaps(or bhop or whatever) like in racegame the ghost driver Default settings are : - 6 Saveslots per map and player - unlimited recording time - recording with 1,5Kbyte/s .: CVars :.
version 0.24 (record_rendermode.amxx)
.: Known Bugs :.
[HEADER][FLOAT][THINK][THINK][THINK][THINK]... ...[THINK] the file is read until no data is found first float is useless Header: Code:
INT Version [22] Code:
Float origin[0] |
Re: Ghost Recorder
Very, very interesting.
|
Re: Ghost Recorder
1. g_TotalThink is never used for any purpose.
2. You should use mkdir() if the save directory doesn't exist in the plugin_init(). That's all I looked at right now. I may look more later. |
Re: Ghost Recorder
1. ok will change but why is no warning thrown...
2. does file_exists work for dirs? EDIT: nvm all... uploaded fixed version |
Re: Ghost Recorder
Edit your initial post and make sure the bulk of it is in the normal font and format. You must post in a manner consistent with the norm here.
|
Re: Ghost Recorder
Can you add support for play recorded actions on current player, not ghost-player?
Very interesting plugin =). |
Re: Ghost Recorder
@Wentix:
pwned 255 block, ands lets do it 60x? :mrgreen: |
Re: Ghost Recorder
Wow, this is great!
|
Re: Ghost Recorder
@xPaw
?????? |
Re: Ghost Recorder
You should store mapname at plugin_init, and players steamid on client_authorized(), instead of getting it tons of times
|
Re: Ghost Recorder
Quote:
|
Re: Ghost Recorder
Fixed Post(hopefully)
Fixed plugin and added some more features |
Re: Ghost Recorder
That is a perfect balance that you used, good job fixing it. Use that format from now on.
|
Re: Ghost Recorder
Hello.
I like to review code so i leave you some tips: Don't do PHP Code:
Use instead two counters. One for players recording other for ghosts. Then, inside start_replay (if the ghost is created sucessfully) check the ghost counter. If its 0, call the register_forward(FM_Think.... If its value is bigger don't do nothing. Increment it. In fm_ghost_think after doing PHP Code:
The same for plr_prethink. I think you get the point. I also recommend you to use the same approach to PHP Code:
When dealing with coordinates use a enum like: PHP Code:
Because its more easier to read: PHP Code:
PHP Code:
Other thing. Use a function to compare vectors like: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Use the bool tag. Then change PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: Ghost Recorder
When using coordinates with Origin always use x, y and z - not 0, 1 and 2.
|
Re: Ghost Recorder
PHP Code:
|
Re: Ghost Recorder
ok i will commit some changes later today
but i dont need this: Quote:
|
Quote:
Quote:
PHP Code:
|
Re: Ghost Recorder
Quote:
|
Re: Ghost Recorder
Quote:
|
Re: Ghost Recorder
|
Re: Ghost Recorder
ofc its working showing 2 servers one of 'em is mine
ML? maybe later? just need to fix some errors can some of you please try to reproduce a crash i've got (dont know weather its related to this plugin) if someone replays a Ghost please mapchange (if server crashes its probably this plugin) thx and please post serverlog |
Re: Ghost Recorder
Quote:
PHP Code:
PHP Code:
to PHP Code:
PHP Code:
to PHP Code:
Quote:
__ Teddy, other thing: avoid to return in the middle of the code. Example: Instead of: PHP Code:
PHP Code:
|
Re: Ghost Recorder
Quote:
|
Re: Ghost Recorder
Quote:
|
Re: Ghost Recorder
Uploaded new version with some fixes
if someone could take a look at addToFullPack im not happy with it but thats the only way i've got it to work |
Re: Ghost Recorder
AWESOME!
|
Re: Ghost Recorder
gj, i will copy some code soon.
|
Re: Ghost Recorder
Cool plugin, but it only works on amxmodx 1.8.2. Is it possible to rewrite the plug on amxmodx 1.8.3?
|
Re: Ghost Recorder
ye i want to ask same quesiton...does anyone know how to convert code to 1.9 ? problem is: it is recording the demo, but when you try to play that demo its just:
Playback started after 0.1 Playback finished maybe 1.9 doesnt work well with fread(..) ? |
Re: Ghost Recorder
Quote:
|
Re: Ghost Recorder
Interesting plugin. I'm surprised noone has attempted to create a plugin similar to one i saw on sourcemod where a bot copies your exact movements and completes surf levels to showcase your record and/or to show people how to complete those particular levels. Also this plugin could be pretty dangerous if someone decided to use it to execute malicious code lol.
|
Re: Ghost Recorder
Quote:
|
Re: Ghost Recorder
Quote:
|
All times are GMT -4. The time now is 19:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.