Expression 2 - Prop Core

From GMod Wiki

Revision as of 20:02, 19 July 2010 by Eyefinity (Talk | contribs)
Jump to: navigation, search
Up one category:
Unofficial Addons

Contents

E2 Prop Core

Developed by: Mr.Faul
Bugbuster: TomyLobo
Last update: 13.10.09(DDMMYY)

Warning: turned E:repostion(A) into E:setPos(A) and E:rerotate(A) into E:setAng(A)

Well simply use Ctrl+H and press replace all to fix that

Warning: added cvar sbox_E2_PropCore

To activate all functions, you need to set it to 1 or 2. See below for more information.

Description

Adds the ability to spawn, delete, rotate, reposition, freeze, set solid / not solid, and parent your own props.
The Core is fully controllable with three convars:

wire_expression2_extension_enable propcore
Enables prop core in uwsvn

sbox_E2_PropCore (def 0)
Modes:
1 = "Admin mode" only admins are allowed to use the core
2 = Everybody can use the core
Any other number turns it off!!!

sbox_E2_maxProps (def -1)
Modes:
-1 = sandbox prop limit
0 = spawning off
N = your limit

sbox_E2_maxPropsPerSecond (def 4)
N<=0 turns spawning also off.


Related Examples

@name Oil Drum spawner
@inputs I
@outputs
@persist
if(~I & I){
 propSpawn("models/props_c17/oildrum001.mdl",0)
}
@name Entity Copier
@persist [Ori Copy]:entity
interval(100)
if(owner():keyUse()){
	if(!Copy & owner():aimEntity()){
		Ori=owner():aimEntity()
		Copy=propSpawn(Ori,Ori:pos(),Ori:angles(),1)
		Copy:setColor(Ori:getColor())
		Copy:setMaterial(Ori:getMaterial())
		Copy:setSkin(Ori:getSkin())
		Copy:setAlpha(150)
		Copy:propNotSolid(1)
	}
	elseif(Copy & owner():aimEntity()!=Ori){
		Copy:setPos(owner():aimPos()+owner():aimNormal()*Copy:radius()+owner():aimNormal()*10)
		Copy:setAng(owner():aimNormal():toAngle())
	}
}
elseif(Copy & Ori){
	Copy:setAlpha(255)
	Copy:propNotSolid(0)
	Copy:propFreeze(0)
	Ori=noentity()
	Copy=noentity()
}

Download Link

Prop core now comes with the unofficial wiremodextras SVN (UWSVN)

You can also download it separately here:
Click to download
Old version (Not Working)

Commands

Function Inputs Returns Description
propSpawn(model, frozen)
S
N
E
Returns the entity created based on the input model path and spawns the prop above the expression2 chip. Last number sets frozen/unfrozen (1/0).
propSpawn(template, frozen)
E
N
E
Returns the entity created based on the input entity and spawns the prop above the expression2 chip. Last number sets frozen/unfrozen (1/0).
propSpawn(model, pos, frozen)
S
V
N
E
Same as propSpawn(model, frozen) with an added vector input for spawn location
propSpawn(template, pos, frozen)
E
V
N
E
Same as propSpawn(template, frozen) with an added vector input for spawn location
propSpawn(model, rot, frozen)
S
A
N
E
Same as propSpawn(model, frozen) with an added angle input for specific spawn rotation
propSpawn(template, rot, frozen)
E
A
N
E
Same as propSpawn(template, frozen) with an added angle input for specific spawn rotation
propSpawn(model, pos, rot, frozen)
S
V
A
N
E
Same as propSpawn(model, pos, frozen) with an added angle for rotation
propSpawn(template, pos, rot, frozen)
E
V
A
N
E
Same as propSpawn(template, pos, frozen) with an added angle for rotation
E:propDelete() Removes the prop.
R:propDelete()
N
Removes any props in array returns number of deleted props.
T:propDelete()
N
Removes any props in table returns number of deleted props.
E:propFreeze(freeze)
N
Freeze/Unfreeze(1/0) the given prop.
E:propGravity(gravity)
N
Enable/Disable(1/0) the props gravity.
E:propNotSolid(notsolid)
N
Set the prop solid / not solid (0/1).
E:setPos(pos)
V
Sets the new position of the prop.
E:reposition(pos)
V
Sets the new position of the prop.
E:setAng(rot)
A
Sets the new rotation of the prop.
E:rerotate(rot)
A
Sets the new rotation of the prop.
E:parentTo(target)
E
Parents the first given entity to the second given entity
E:deparent() Removes the parent on the entity
propSpawnEffect(enabled)
N
Determines if the props spawned by the E2 will display the spawn effect.

Servers

If you running prop core on your server leave your IP:Port here:

NMDGaming.com | #2 | Build Server [Wire+PHX SVN]
202.60.89.36:27015

||3DB|| Jasp's 24/7 Build [Wiremod, PHX3, and more!!!]
89.238.160.122:27017

|DSA| FreeBuild: Wire/PHX/UWSVN/PewPew
173.22.0.73:27015

[FH][FortexHotel.com][DeathmatchBuild]
64.34.172.175:27017

[Wire] Tyler's Wire Server
204.214.6.213:27015

Ascension [Sandbox]
75.102.38.125:27015

Builders Place SVN
212.95.32.217:27016

CCS[Wire/Gcombat/PHX]
216.6.233.177:27015

Codec's Space Build 3 [UWSVN PropCore SBEP5]
98.193.205.80:27015

German Build [fastDL] | gmod-community.de
78.46.19.75:27016
Please speak english or german.

German Roleplay [fastDL] | gmod-community.de
78.46.19.75:27015
Please speak English or German.

HERO Blow up & Build <Wire-Propcore-Stargate> FAST DL
82.7.40.60:27015

Kybe's GMod School of Building and Wire | WireSVN PHX3 GCombat
68.44.217.220:27015

Roflcopter's Build|RP|Phx3|Wire|Dupe|PC|Fast DL
69.162.91.40:27015

S-FACToR Pro Build
76.174.39.200:27015

Unsmart's Build Server
89.238.160.112:27017

Nik's Server - Wiremod,E2,UWSVN,PHX3,ULX
173.20.163.47:27015

Whitewater's Build Server
69.162.71.185:27015

www.MingeBag.de | Build Server SVN:[StarGate/Phx/Wire+Extras]
62.141.36.139:27030

E2 Creators #2 - Wire/PHX/Exsto (Server name subject to change)
94.228.45.97:27015

wiremod.ru Build server
93.153.188.71:27016
Password: any

Jonnymeisters Stupidly Awesome Deathmatch-Build
108.16.11.184:27015

Personal tools