ImageMap
This is just the first version of this plugin, there will be extended functionality later on. Right now it's possible to specify a player decal in the KV file, and only ActionType "url" is supported.
Basically this detects sprays that match the predefined DecalFile, and then sets an imagemap for them!
Plugin features
- Interactive player decals
- Players will receive a notification when they hover over an interactive spray.
- Different action types
Commands
- spray_check
- Provide debug information about the spray a player is aiming at.
Changelog
Plans
- Support for ActionType "cmd", so you can run commands.
- Also needs support for different client arguments (userid, clientid, name, steamid).
- Support for map decals.
- Includes spawning them automatically on a per-map base.
- Support for additional hooks. ("voicemenu 0 0" only works on TF2, so for the rest of the games only the spray-key is working)
- +use (since that's also E)
Media
Installation
So, in order to install/configure this plugin, you first have to drop the SMX in
addons/sourcemod/plugins/ and the CFG into
cfg/sourcemod/.
The first thing you have to do is spray an image in-game, and run the spray_check command. It will output the following information:
- The decal filename of the spray you're looking at.
- The point you're aiming at.
Set the "Decal" key in the CFG to be the filename it displays.
Now aim at the top left corner of the imagemap you want to define, and run the command. Save this point under "Point1", now do the same for the lower right corner and save this point under "Point 2".
This is a copy of the CFG file:
Code:
"Test Decal" {
"Type" "player"
"Decal" "78f6a9b6"
"#1" {
"Label" "Press E to donate."
"Point1" "-1.963104 0.000000 6.141464"
"Point2" "26.536132 0.000000 -7.195083"
"ActionType" "url"
"Action" "http://www.paypal.com/"
}
}
Have fun!
Kind regards,
Matthias Vance