Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.55 KB

README.md

File metadata and controls

57 lines (40 loc) · 1.55 KB

This is my package tf2-faker

Latest Version on Packagist Total Downloads

Package that helps you return random Team Fortress 2 names of weapons in factories.

Installation

You can install the package via composer:

composer require cheddzy/tf2-faker --dev

Usage

Provided for each TF2 class is a method to return a random weapon string in a factory:

$this->faker->scoutWeapon();

You can also specify a class and class + slot:

$this->faker->classWeapon('heavy');
$this->faker->classWeaponSlot('engineer', 'pda');

As well as for specific slots per class:

$this->faker->spyPrimary();
$this->faker->spyMelee();
$this->faker->spyPDA();
$this->faker->spyWatch();
$this->faker->spySapper();

These exist for all 9 classes.

NOTE: Keep in mind spy is the only one with a Watch and Sapper slot, and Engineer and Spy are the only ones with a PDA slot!

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Test