Serious Sam Fusion 2017 (beta)

Serious Sam Fusion 2017 (beta)

80 ratings
Tool Gun [Resource]
   
Award
Favorite
Favorited
Unfavorite
Content: Weapons
File Size
Posted
Updated
1.743 MB
25 Jul, 2019 @ 1:52pm
2 Sep, 2019 @ 3:31am
4 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Tool Gun [Resource]

Description
source engine is kinda fun
Here it is, the Tool Gun from GMod. I had the files laying for it on my HDD ever since like December of 2018? I don't know, but it's been a long time and I forgot about it.
Trying to mimic how it was made in Garry's Mod, the Tool Gun has the ability to be scripted by modders. Yup, no function is hardcoded, everything has it's own script file and interfaces with the Tool Gun over the exposed scripting stack.
As for the functions, there are 9 of them. Of course, I wasn't able to make everything, as I'm limited by what Serious Engine can and can't offer. Here's a rough description of them.

NOTE: Most of the functions don't work on entities like Simple Models, due to Croteam removing any kind of scriptability from them. Static models are perfectly fine, though. The mod shows entities you cannot interact with by marking them with a red X.

Functions
NOTE: To change the current function, use the Page Up and Page Down buttons.

Teleporter
Pretty self explanatory. You get teleported anywhere you shoot.

Mover
Moves around entities. Left click selects the entity you want to move. Right click teleports the entity you've selected.

Duplicator
Duplicates Static Models. Left click selects the model to be duplicated. Right click duplicates the model at the selected point.

Remover
Removes entities. Left click removes the entity that was shot at.

Healer
Heals players. Left click heals the shot player to 100HP. Right click replenishes the shot player's armor to 100.

Colorizer
Changes colors of Static Models, Player Puppets and Enemy Puppets. Left click sets the color of the shot entity. Right click changes the color you currently use.

Weaponizer
Spawns weapons and ammunition. To set the spawned weapon, type "!weapon [Name of the weapon from Kuber's Weapon Database mod]" into the game's chat. Left click spawns the weapon. Right click spawns the ammo for the weapon.
NOTE: In Singleplayer, use "globals.SetWeaponizerWeapon("[Name of the weapon from Kuber's Weapon Database mod]")" in the console to change the weapon.

Infighter
Forces two enemies to fight with eachother. Left click selects the enemy. Right click selects the foe for that enemy.

Attacher
Attaches Static Models to enemies. Left click selects the model. Right click attaches the model to the enemy that was shot.

Scripting the Tool Gun
The Tool Gun exposes two functions for scripting.

worldGlobals.ToolGun.RegisterToolGunFunction(id, title, description, usage, onFire, onAltFire)
Registers a new Tool Gun function.
id (string) - The ID of the function. (i.e. mover)
title (string) - The title of the function. (i.e. Colorizer)
description (string) - The description of the function. (i.e. Color models and puppets.)
usage (table) - The descriptions of the weapon usage.
The structure of the usage table is:
{
LMB = "What the left mouse button does",
RMB = "What the right mouse button does"
}
onFire/onAltFire (function) - The firing functions. They both receive following parameters in the following order:
penPlayer (CPlayerPuppetEntity) - The player that invoked the function
hitEntity (entity handle) - The entity that was hit. (In the case that no entity was hit, this is nil)
hitVec (Vector3f) - The position vector of the hit.
hitNorm (Vector3f) - The normal vector of the hit.
strRandomness (string) - A random string. (Used for syncing the duplicator)

Credits
noam 2000 - Animating the Tool Gun
Facepunch Studios - Tool Gun model
Valve - Sounds
33 Comments
OreosJermapukedonhismother'sbed 14 Jan, 2023 @ 11:29am 
awesome
NextOrange2704TheSlayer 23 Mar, 2022 @ 5:52am 
haha toolgun go brrrrr:gmod:
Critical 27 Dec, 2021 @ 10:10pm 
does it just only works for serious sam BFE? Cause i tried TFE TSE but none of them work there, but just only BFE works.
Cuddles 20 Oct, 2021 @ 4:16am 
thank you, that fixed it
tensor algebra  [author] 19 Oct, 2021 @ 11:00am 
with the console, the proper way to invoke it is: globals.SetWeaponizerWeapon("venomgun")
so capitalized + the quotations only in the function argument.
Cuddles 19 Oct, 2021 @ 9:22am 
The weaponizer doesn't seem to be working, I want to use it on the npc bots so they can use custom weapons but on game chat I keep getting this https://i.imgur.com/XF7srMr.png and with console it's this https://i.imgur.com/RTCvC9I.png both are not giving me any weapon to spawn and I checked kuber's list
Windows_TAHK 15 Mar, 2021 @ 1:39pm 
Make a physical gun
tensor algebra  [author] 15 Jan, 2021 @ 4:38am 
Tool Gun should already work in HD.
Daemon Hellfire 15 Jan, 2021 @ 4:20am 
Hi, I have a question matured: Will you make an update for Tool Gun so that it works in the HD version?)
WenKlase 20 Aug, 2020 @ 8:11pm 
I enter this command in the console which opens with a tilde globals.SetWeaponizerWeapon("q3aRailgun")