Ulysses Stuff => General Chat & Help and Support => FAQs => Topic started by: Megiddo on December 30, 2007, 10:54:32 AM

Title: Pro tips
Post by: Megiddo on December 30, 2007, 10:54:32 AM
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 (http://developer.valvesoftware.com/wiki/List_of_entities). The flags and values are the same you would specify from Hammer, also listed here (http://developer.valvesoftware.com/wiki/List_of_entities).

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: [Select]
ulx ent weapon_rpgThere 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: [Select]
ulx ent prop_ragdoll model:models/alyx.mdlThere'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: [Select]
ulx ent prop_ragdoll model:models/alyx.mdl | origin:0 0 0Alyx ragdoll at the origin!

To create an ammo crate (play around with the ammotype number for a different ammo):
Code: [Select]
ulx ent item_ammo_crate ammotype:8 | solid:6
To create a chair you can sit in:
Code: [Select]
ulx ent prop_vehicle_prisoner_pod model:models/nova/jeep_seat.mdl | limitview:0
Create a combine that goes around releasing manhacks:
Code: [Select]
ulx ent npc_metropolice manhacks:10 | additionalequipment:weapon_stunstick
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: [Select]
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
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 (http://en.wikipedia.org/wiki/Bitmask).
Title: Re: Pro tips
Post by: Neku on August 05, 2014, 02:01:13 AM
Tip #2's links go to the same url. Sorry for the necro though, I just feel that this information might be accessed.
Title: Re: Pro tips
Post by: Megiddo on October 26, 2014, 01:08:38 PM
That's as it's supposed to be, Neku. No worries on the necro, I just referenced this post yesterday myself, ha ha.
Title: Re: Pro tips
Post by: Zyklus on October 27, 2014, 02:08:19 PM
Tip #over-nine-thousand:
Never ever ever mess with ?????.
Title: Re: Pro tips
Post by: Aharon Tager on October 08, 2015, 06:11:44 PM
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.
Title: Re: Pro tips
Post by: MrPresident on October 08, 2015, 09:26:46 PM
The link is to a list of entities.
You click the entity you want info for and it takes you to the valve wiki for that entity.

Every entity has different flags. Posting them all on one page would be a cluster.
Title: Re: Pro tips
Post by: Aharon Tager on October 09, 2015, 01:31:39 PM
Thanks that was unclear before.