Raised This Month: $32 Target: $400
 8% 

TFC Jump Trainer


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
wirehead
Junior Member
Join Date: Dec 2010
Old 01-01-2011 , 02:21   TFC Jump Trainer
Reply With Quote #1

TFC Jump Trainer
v0.9a



This plugin is for making training courses that involve flying targets, by recording weapon jumps and having bots follow them, as can be seen in http://www.youtube.com/watch?v=UIAFT0nCzRI .

It requires FoxBot to be installed (any version), and for one or more bots to be in the game on the team you want to defend against (blue by default). No other setup is needed on that end.

A recorded jump simulates one of the long weapon jumps that TFC is well known for, and for short manual hops if you need it to (it can simulate bunny hopping to some extent).

To make one, you prepare a jump (lay pipe bombs, prime a concussion grenade, etc.), say jumprec, and let fly.

As soon as you leave the ground, a series of nodes are created along your trajectory until you land, then you are teleported to the beginning of that newly-created jump so that you can test it, since jump recording isn't exact due to various limitations.

The green dots (jump nodes) can be moved around with +grabit if they're in the way, and you might want to hide them so that queued bots aren't visible during training.

A training course would include a few of those jumps, and one or more of the following:

Props (created through the /cc menu):

Fake capture pad: It is meant to be placed on the actual capture pads of attack/defend style maps, like avanti or dustbowl, to simulate defense of it with a training course. It's solid during setup, so you can move it around, and unsolid during training.

When a bot touches the ground within that block's area, a "<botname> capped!" message occurs, and that bot is reset.

Escape wall: Any bot that flies through it during training mode is rewarded a few frags and reset, with a "<name> escaped!" message generated, so you would place it at the end of a hallway you want to defend. It's also solid during setup and unsolid during training.

Fake flag: Generates a message upon touch, for testing your flag pipe timing possibly. Does not reset the bot.

To move those props around, bind a key to +grabit, aim at the prop, press that key and move your mouse.

You can make up to 9 courses per map, and 20 jumps per course.

The default course is 1, so jumps will be assigned to it until you switch by saying c#, where # is the course of choice; for example, say c3 to switch to course 3.

Say "start1" to start a training session, once the jumps are set up. After you do that, all props and jumps become invisible, the bots will randomly choose a jump in the current course, follow the jump trajectory, and either be killed by the player, be teleported back by a prop (like the capture pad), or hit the ground and roam around for an adjustable time before being reset.

Saying "start2" starts that session with visible props and jumps.

Saying "stop1" stops the training session and re-enters setup mode (which is on by default upon map start).

Say /cc to enter the course creation menu, where you can add props, adjust course details or pick a player effect, like infinite grenades and no-reload mode.

The teleportation commands can make course creation and use easier. They are:

save#: Saves the player's location to slot #, where slots 1 to 9 are written to file, but require admin_slay privilege to create

go#: Teleports the player to the location stored in slot #, where 1 to 9 can be used by any player, and 0 is the position saved right before a jump is created

zapto: Teleports the player right next to the position being aimed at. It's used a few times in the youtube video.

Lastly, all of your changes are saved to a <mapname>.cfg and <mapname>tele.cfg file in the <amxmodx>/configs/JT folder.

Other commands:

traineron: Enables no-reload, infinite grenades and health for the player

traineroff: Disables the above

noclipme: Toggles noclip

quad: Gives the player quad

giveall: Gives the player all weapons

vs<teamcolor>: Change this to the team color you want to train against, for example 'vsgreen' (default blue)

Cvars:

fakelag: (Native to Half-Life, and requires sv_cheats 1): This lets you simulate network lag if you're hosting the game server locally, to refine your pipebomb detonation timing.

roamdelay: Changes the time that bots roam around upon landing

pointsforcap: Adjusts the points awared per fake cap

nodeheight: Increases the height a player is given when using a jump

jumpdelay: Adjusts the wait time before a jump is used again

nodesens: Adjusts the sensitivity of connected jump nodes (it's recommended that you leave this at the default of 15, though you can tweak it to see if it helps for sharper turns)

--------------------------------------------------------------------------------------

Demo.zip contains an example of setting up and using jumps, which was designed to be as easy as I could manage. To view it, you will need the sprites and models zip.

Consider this a holiday gift for the fast-shrinking TFC community.

Also, thanks to the players who playtested it: Moogle, DLC, Static, tn|Snow, auntydan, cocoageejo, and Mr. CR1M1NAL.

The code is still in alpha and uncommented, until I add the last two features: jump coordination (varying levels beyond random, written to file), and additional save slots.
Attached Files
File Type: sma Get Plugin or Get Source (jumptrainer_0p91a.sma - 885 views - 136.7 KB)
File Type: zip demo.zip (2.11 MB, 187 views)
File Type: zip sprites and models.zip (32.2 KB, 169 views)

Last edited by wirehead; 01-02-2011 at 07:20.
wirehead is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-01-2011 , 10:45   Re: TFC Jump Trainer
Reply With Quote #2

Why do you include engine module and use native conversion such as fm_trace_hull, fm_trace_line, fm_is_ent_visible ?
Use engine natives is more efficient.

What about making a description of what the plugin does, and avaible commands ?
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-01-2011 at 11:05.
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-01-2011 , 12:46   Re: TFC Jump Trainer
Reply With Quote #3

Also, use the ZIP format instead, please.
__________________
Arkshine is offline
wirehead
Junior Member
Join Date: Dec 2010
Old 01-01-2011 , 23:35   Re: TFC Jump Trainer
Reply With Quote #4

ConnorMcLeod, I'll do that, but need to know what the details surrounding it are.

Could you please link to a post that explains it?

Also, hope that description is sufficient.

Arkshine, sure, no problem.
wirehead is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-02-2011 , 07:21   Re: TFC Jump Trainer
Reply With Quote #5

The less natives you call the more fast your plugin will be. You have a tuto here.
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-25-2011 , 17:22   Re: TFC Jump Trainer
Reply With Quote #6

No changes, unapproved.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
wirehead
Junior Member
Join Date: Dec 2010
Old 05-02-2011 , 22:26   Re: TFC Jump Trainer
Reply With Quote #7

Ok, sorry, I was not motivated to fix it since the mod was waning in popularity, but now I want to, just for the sake of completion.
wirehead is offline
wirehead1
Junior Member
Join Date: May 2021
Old 02-08-2022 , 19:58   Re: TFC Jump Trainer
Reply With Quote #8

Hi mods, I've since lost my old login deets, what is needed to make this approved?
wirehead1 is offline
wirehead1
Junior Member
Join Date: May 2021
Old 02-08-2022 , 20:09   Re: TFC Jump Trainer
Reply With Quote #9

ConnorMcLeod, requesting help

Last edited by wirehead1; 02-08-2022 at 20:37.
wirehead1 is offline
wirehead1
Junior Member
Join Date: May 2021
Old 02-08-2022 , 20:45   Re: TFC Jump Trainer
Reply With Quote #10

Oh, thanks for tutorial.

I will replace FM stuff with engine.
wirehead1 is offline
Reply



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:27.


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