AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   TF2: Parent Buildables To Moving Entities (Elevators, Cars etc) (https://forums.alliedmods.net/showthread.php?t=69060)

teddyruxpin 03-27-2008 16:32

TF2: Parent Buildables To Moving Entities (Elevators, Cars etc)
 
3 Attachment(s)
This is a first plugin for me. With the assistance from WoZeR at 3-PG I was able to put this together. The plug-in allows you to build on moving entities such as cars in Mario_Kart or Elevators in other levels. Also allows you to build on pretty much any prop_physics (IE the companion cube).

Have been running this now for 2 weeks with no issues. Makes for great tank wars if you increase the max number of allowed SG's per player.

Looking for help to expand this to make a stronger SG with more ammo and HP as these are used on my 100% Crit server and need a little more 'unf'. Please MSG me if you are able to assist.

-Teddy

toazron1 03-27-2008 21:29

Re: TF2: Parent Buildables To Moving Entities (Elevators, Cars etc)
 
Excellent. I can't wait to try it out.

2 things right off the bat, first you want to post the .sp rather then the .txt file and you have an unused function at the bottom ( public OnMapStart() ) just chilling there.

Also replace:
PHP Code:

public Plugin:myinfo =
{
      
name "Buildable Parenting",
      
author "WoZeR - Teddy Ruxpin",
      
description "Allows buildable objects to parent with moving entities",
      
version 1.0,
      
url "http://www.layeredtech.com"


with

PHP Code:

 public Plugin:myinfo =
 {
       
name "Buildable Parenting",
       
author "WoZeR - Teddy Ruxpin",
       
description "Allows buildable objects to parent with moving entities",
       
version PLUGIN_VERSION,
       
url "http://www.layeredtech.com"
 


this uses your verison variable and fixes the compile warning.

teddyruxpin 03-27-2008 22:00

Re: TF2: Parent Buildables To Moving Entities (Elevators, Cars etc)
 
Thanks for the tips. I will get it cleaned up and uploaded shortly.

Jeremy

EDIT: This is completed.

Scuzzy 03-27-2008 23:00

Re: TF2: Parent Buildables To Moving Entities (Elevators, Cars etc)
 
Quote:

Originally Posted by teddyruxpin (Post 602896)
if you increase the max number of allowed SG's per player.

Which offset would you modify to do that?

SixSicSix 03-27-2008 23:15

Re: TF2: Parent Buildables To Moving Entities (Elevators, Cars etc)
 
Works great! Thanks for your work, it's absolutely amazing. I'll be linking people here if they ask about it :)

teddyruxpin 03-28-2008 01:45

Re: TF2: Parent Buildables To Moving Entities (Elevators, Cars etc)
 
Quote:

Originally Posted by Scuzzy (Post 603072)
Which offset would you modify to do that?

Not the best method but I modified the 'objects.txt' file in the srcds install directory to allow for 2-4 SG's, 4 Teles and 2 Dispensers per Engie. We did have it set to no limit earlier and it crashed the server once several hundred SG's where made.

C:\Program Files\Valve\HLServer\srcds\orangebox\tf\scrip ts\objects.txt

Modify the file above and then restart your game for the changes to take affect. Note you can also change the cost per object there and how fast they are built. Keep in mind this file will get overwritten with each update which is why I say its not the best method. Once you have that change done you will need to bind a 'build' key. I use 'bind "7" "build 3"' and it will then provide me with a PDA option to drop a SG where I wish. Use build build 0 -> 3 for Dispenser, Tele out, Tele In and SG.

-Jeremy

Skyrider 04-01-2008 03:11

Re: TF2: Parent Buildables To Moving Entities (Elevators, Cars etc)
 
Awesome! Will install this later on today on my own server, this sounds nifty.

teddyruxpin 04-01-2008 18:54

Re: TF2: Parent Buildables To Moving Entities (Elevators, Cars etc)
 
Am I missing something to get this plugin moved to the "Approved Section" or is it just a matter of time for someone to look into the code and try it themselves? Let me know if something is missing please.

Thanks,

Jeremy

DontWannaName 04-01-2008 20:07

Re: TF2: Parent Buildables To Moving Entities (Elevators, Cars etc)
 
I tried using it once but the trains move so fast you cant build with them on a public server before you get killed.

teddyruxpin 04-01-2008 22:18

Re: TF2: Parent Buildables To Moving Entities (Elevators, Cars etc)
 
Quote:

Originally Posted by DontWannaName (Post 605486)
I tried using it once but the trains move so fast you cant build with them on a public server before you get killed.

Not really ment for cp_well or ctf_well type trains as they move way to fast and would destroy any buildable attached to them. This plugin is more for maps where there is active elevators players can use, Dynamic props like cubes etc that can be shot around and built on and cars, trucks or anything else that runs on a HL1 'tracktrain' type system where the cars are moving. IE Mario_Kart / Mario_Kart_CP

Thanks,

Jeremy


All times are GMT -4. The time now is 23:25.

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