AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Soldier Tribute Statue Spawner (https://forums.alliedmods.net/showthread.php?t=323926)

MrSkullbeef 05-01-2020 20:51

[TF2] Soldier Tribute Statue Spawner
 
2 Attachment(s)
Today, Valve added a Soldier statue as a tribute to the voice actor Rick May who passed away earlier in April. The statues are present on every official TF2 map for the duration of May, but not on community maps unless someone manually puts them there. So I figured I'd quickly make a plugin to make that happen.

To install, simply put rick_statue.smx in your plugins folder, and create a file called rick_statue.txt in your configs folder, with the following format:

HTML Code:

"RickStatue"
{
        "trade_map1"
        {
                "x_origin" "-795.0"
                "y_origin" "-1200.0"
                "z_origin" "-11135"
                "x_angle" "0.0"
                "y_angle" "90.0"
                "z_angle" "0.0"
        }
        "trade_map2"
        {
                "x_origin" "-326.0"
                "y_origin" "502.0"
                "z_origin" "-351"
                "x_angle" "0.0"
                "y_angle" "-180.0"
                "z_angle" "0.0"
        }
}

The coordinates and viewing angles can easily be retrieved using this plugin, or simply using getpos in console. If you do the latter, you will need to resize yourself to a size close to 0, or the z coordinate will be wrong (it'll be on eye-level height instead of on the ground).

PC Gamer 05-02-2020 01:56

Re: [TF2] Soldier Tribute Statue Spawner
 
Confirmed working. Nice Job!

epicwindow 05-02-2020 04:00

Re: [TF2] Soldier Tribute Statue Spawner
 
hmm is it possible to automatically put one at spawns?

Mr_panica 05-02-2020 07:57

Re: [TF2] Soldier Tribute Statue Spawner
 
I did this initially with the hexprops plugin and the PhysicsGun plugin.
But now I transferred the coordinates to this plugin, thanks)

B_CANSIN 05-02-2020 14:42

Re: [TF2] Soldier Tribute Statue Spawner
 
hmm also can you add to compiled .smx ?
Because of
Plugin failed to compile! Please try contacting the author.

MrSkullbeef 05-02-2020 15:04

Re: [TF2] Soldier Tribute Statue Spawner
 
Quote:

Originally Posted by B_CANSIN (Post 2697661)
hmm also can you add to compiled .smx ?
Because of
Plugin failed to compile! Please try contacting the author.

I think the "Get Plugin" works now, but in case it doesn't I also uploaded the compiled .smx.

B_CANSIN 05-02-2020 15:53

Re: [TF2] Soldier Tribute Statue Spawner
 
Quote:

Originally Posted by MrSkullbeef (Post 2697670)
I think the "Get Plugin" works now, but in case it doesn't I also uploaded the compiled .smx.

Thank you also this so great plunig to have its meaningfull
heres test image
https://steamuserimages-a.akamaihd.n...3B95049D13F1F/

Sappykun 05-03-2020 02:04

Re: [TF2] Soldier Tribute Statue Spawner
 
1 Attachment(s)
I edited this plugin to add the ability to spawn a statue wherever you're looking. It also prints the coordinates of the placed statue so you can add it more easily to the config file.

Uses a bit of code copied from Coordinate Printer.

I may build on this later, or if someone else want to take a stab, they can go for it. I think this L4D2 Respawn Rescue Closet plugin would be a good resource, since it's the same general idea but with portapotties.

Here's what I was planning on adding/my feature request list:
  • Automatically update and save the config file when a statue is placed
  • Allow for more than one statue per map
  • Allow statues to be removed from a map

PC Gamer 05-03-2020 15:08

Re: [TF2] Soldier Tribute Statue Spawner
 
Works great Sappykun. Thanks! I look forward to the option to remove a statue, even if it is the one you just placed, or maybe the one you are currently looking at.

Issue: You place a statue to get coordinates, but the placement isn't quite right. You want to place it again but the first statue is in the way.

Proposed solution: Add a command to remove the statue you are looking at.

DrFallen 06-07-2020 15:59

Re: [TF2] Soldier Tribute Statue Spawner
 
Has anyone found a way to just spawn the statue in the official maps without finding co-ords now that Valve has disabled it.


All times are GMT -4. The time now is 20:40.

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