AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY]Build Mod (https://forums.alliedmods.net/showthread.php?t=138027)

javalia 09-13-2010 00:58

[ANY]Build Mod
 
2 Attachment(s)
<Build Mod>




Introdution

This plugin gives you usefull functions for build server.

this is list of functions
  • spawn ragdoll, rigid
  • enable/disable motion of rigid
  • copy a prop
  • delete/dissolve prop
  • stabilize prop
  • set speed of prop(to make jump pad or accelerate pad)
  • make prop to not take damage, or take damage
  • set mass of prop
  • toggle gravity of prop
  • weld props



Requirements

this plugin needs the things listed below to work:
  • VPhysics



Installation

to install this plugin
  • put the smx file in the sourcemod/plugins folder
to compile this plugin manually
  • put all sp files in the sourcemod/scripting folder
  • put all inc files in the sourcemod/scripting/include folder
  • compile.



Configuration

to configurate this plugin to your likes
  • to use auto generated cfg file
    • run the plugin once, then the cfg will be generated in the cfg/sourcemod folder
    • take a look at the options and change them to your preferences
    • the options you choose in the cfg will be loaded on every map change
  • cvarlist for this version
Code:

//this will restrict other guy from grab prop that spawned by this mod if u are using gravitygun mod
buildmod_gravitygunmodrestrict "1"

if plugin has updated and it`s cfg file has changed, you should remove old one and regenerate cfg file



[/size]Known Bugs & Limits Of the Mod
  • if u delete/dissolve props that are stuck with world or other prop, it can make physics mayhem



Special Thanks To

i want to say thanks to these guys
  • asherkin for made wonderful extension vphysics and powered my build mod
  • flaminsarge for suggesting invalid model path check fix and updated plugin



Change Log

all the date`s format is y/m/d
Code:

update at 2012 1 30(ver 1.0.1.18)
  • updated plugin for updated vphysics extension

  • added function for prop_physics_multiplayer

  • credits for flaminsarge for this update.


update at 2011 3 29(ver 1.0.1.16)
  • fixed code owner code a lot, it was critical bug .


update at 2011 3 29(ver 1.0.1.16)
  • fixed code owner code a lot, it was critical bug .


update at 2011 3 29(ver 1.0.1.15)
  • added more owner restriction code, admin is exception.

  • now normal users also can spawn prop, ragdoll. well, if u dont want, edit code.


update at 2011 3 29(ver 1.0.1.13)
  • fixed code that works with gravity gun mod.


update at 2011 3 29(ver 1.0.1.12)
  • added check code for invalid model path

  • added code to work with gravitygun mod.


update at 2010 9 13(ver 1.0.0.5)
  • released



asherkin 09-13-2010 01:02

Re: [ANY]Build Mod
 
:D

-Absolute- 09-13-2010 03:16

Re: [ANY]Build Mod
 
Awesome?

FlaminSarge 09-13-2010 23:50

Re: [ANY]Build Mod
 
The Plugin Author in the sm plugins list is "1.0.0.6" :P
Also you might wanna include these as a commands section in your post javalia.
Code:

          sm_copy          console      copy a rigid or ragdoll in auto detected entity type
          sm_copy1          console      copy a rigid in prop_physics type
          sm_copy2          console      copy a rigid in prop_physics_override type
          sm_delete        console      kill entity
          sm_dissolve      console      dissolve entity
          sm_fix            console      disable motion of entity
          sm_god            console      set entitt to invincible stat
          sm_punt          console      punt entity
          sm_ragdoll        admin        spawn a ragdoll with model file path specification
          sm_rigid          admin        spawn a rigid with model file path specification in prop_physics type
          sm_rigid2        admin        spawn a rigid with model file path specification in prop_physics_override type
          sm_setgravity    console      set entity`s gravity
          sm_setmass        console      set entity`s mass
          sm_stop          console      stabilize entity
          sm_targetname    console      set targetname of entity
          sm_unfix          console      enable motion of entity
          sm_ungod          console      set entity to breakable stat
          sm_weld          console      weld two objects

EDIT: I tried the plugin on my server. Ragdolls and rigids spawn fine... if they have a valid model name. I typed in "sm_ragdoll player/engineer.mdl" (its supposed to be models/player/engineer.mdl) on TF2 and the server crashed. Any way to add a check to make sure the model exists on the server before it is spawned?

ml021539 09-15-2010 07:43

Re: [ANY]Build Mod
 
fail in l4d2

asherkin 09-15-2010 08:14

Re: [ANY]Build Mod
 
Quote:

Originally Posted by ml021539 (Post 1299971)
fail in l4d2

Wow, such detailed info.
Great job on the well-written post!

FlaminSarge 09-15-2010 18:25

Re: [ANY]Build Mod
 
:3 @ asherkin

natex2012 02-01-2011 07:30

Re: [ANY]Build Mod
 
hi, what happend to the setspeed command?.

javalia 03-29-2011 03:52

Re: [ANY]Build Mod
 
updated.
and setspeed cmd is used to make jumppad or that things. @ natex2012

Fess 05-07-2011 13:49

Re: [ANY]Build Mod
 
how can i compile it manually? after installing VPhysics in extensions folder it gives me plenty of errors in the compiler


All times are GMT -4. The time now is 10:06.

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