Ulysses Stuff > FAQs

Pro tips

(1/2) > >>

Megiddo:
This topic will be used to keep a running list of "pro tips", cool things you can do in ULX that you probably never realized

Tip #1
You can and should use the garrysmod root for configs! For example, the default ULX config is at garrysmod/addons/ulx/data/ulx/config.txt. Instead, you can put it simply at garrysmod/data/ulx/config.txt. You can also do this for map- or gamemod-specific configs. We also strongly recommend sticking your ulx_motd.txt in the garrysmod root.

The advantages of doing it this way are as follows. First and foremost, you don't have to go as deep in folders looking for the config. This also makes it so that the next version of ULX won't overwrite your files.



Tip #2 (power users only)
Very few people know about the "ulx ent" command, and fewer still know the power behind the command. You can spawn any entity with any parameters you can specify from Hammer. The format for this command is "ulx ent <entity> <flag>:<value> | <flag2>:<value2>...". The entity can be any of the supported entities. The flags and values are the same you would specify from Hammer, also listed here.

We'll start off with an easy example. Say the server I'm playing on restricts the rpg, but I need it for artistic reasons. Assuming I have access to the command, I simply open my console and enter:

--- Code: ---ulx ent weapon_rpg
--- End code ---
There is now an rpg where I was looking when I used the command.

Next, let's say I want to spawn an Alyx ragdoll. This time I would use:

--- Code: ---ulx ent prop_ragdoll model:models/alyx.mdl
--- End code ---
There's the Alyx ragdoll!

Now, let's say I want to spawn an Alyx ragdoll at the origin. A bit trickier this time, more than one flag and value pair needs to be separated with '|'

--- Code: ---ulx ent prop_ragdoll model:models/alyx.mdl | origin:0 0 0
--- End code ---
Alyx ragdoll at the origin!

To create an ammo crate (play around with the ammotype number for a different ammo):

--- Code: ---ulx ent item_ammo_crate ammotype:8 | solid:6
--- End code ---

To create a chair you can sit in:

--- Code: ---ulx ent prop_vehicle_prisoner_pod model:models/nova/jeep_seat.mdl | limitview:0
--- End code ---

Create a combine that goes around releasing manhacks:

--- Code: ---ulx ent npc_metropolice manhacks:10 | additionalequipment:weapon_stunstick
--- End code ---

Now for the most advanced ent we'll cover here, a molotov bottle. You can specify outputs from the ulx ent command as well! The format for this is <outputname>:<targetname>,<inputname>,<parameter>,<delay>,<max times to fire, -1=infinite>. This following command makes a bottle that explodes and lights whatever it hits on fire.

--- Code: ---ulx ent prop_physics physdamagescale:0.05 | model:models/props_junk/garbage_glassbottle001a.mdl | explodedamage:10 | exploderadius:100 | OnBreak:!activator,ignite,,0,-1 | health:9999
--- End code ---

Other notes: You can set spawnflags using "spawnflags:value", IE "spawnflags:256" on a prop_physics makes the prop generate an output on use. This value is a bitmask.

Neku:
Tip #2's links go to the same url. Sorry for the necro though, I just feel that this information might be accessed.

Megiddo:
That's as it's supposed to be, Neku. No worries on the necro, I just referenced this post yesterday myself, ha ha.

Zyklus:
Tip #over-nine-thousand:
Never ever ever mess with ?????.

Aharon Tager:
Since this says its gonna be updated, the link provided no longer has the available flags (unless im mistaken). please can we get an update thanks.

Navigation

[0] Message Index

[#] Next page

Go to full version