Garry's Mod

Garry's Mod

Kekistani Cruise Missile (KCM Mk1) by Dr.n00b
31 Comments
*fu* Dr.n00b  [author] 31 May, 2018 @ 9:36am 
You can also try and mess around with the (many) "find" functions.

https://github.com/wiremod/wire/wiki/Expression-2#Entity_Discovery

But I recommend testing out the below answer first...
*fu* Dr.n00b  [author] 31 May, 2018 @ 9:33am 
Unfortunately, I can't update a published dupe, but you could edit your copy of the "E2 code" to add the extra functionality.

From: https://github.com/wiremod/wire/wiki/Expression-2#Entity

It looks like the "entity(N)" function might be what you want to set "tgtEnt" with, if you know the unique ID number
(e.g. from the Nadmod tool)

I would do it by adding an extra option alongside the "name/class/model" you would have "id"

So (after you edited your E2 chip) your commands could look like:

!fire:1:id:456
fggfhfgdhjgdsf 31 May, 2018 @ 6:47am 
or all props
fggfhfgdhjgdsf 31 May, 2018 @ 6:46am 
I can't really target a specific prop, i try but its an error, i can only target npcs or thrusters etc.
fggfhfgdhjgdsf 31 May, 2018 @ 4:42am 
thanks
*fu* Dr.n00b  [author] 30 May, 2018 @ 2:06pm 
Its fun if the aircraft is made out of wood!
*fu* Dr.n00b  [author] 30 May, 2018 @ 2:05pm 
It might actually be called "gmod_thruster" oops

Try:

!fire:1:class:gmod_thruster

against a bog standard non-wiremod "aircraft"
*fu* Dr.n00b  [author] 30 May, 2018 @ 2:00pm 
If you use the Nadmod Prop Protection system, it gives you a handy overlay/popup that appears when you look at an item.
This shows you the "class/type" that you can use with the "class" based version of the command:
!fire:1:class:your_prop_type

You will need to select a type thats:
A) Unique enough to define / pick out your targets
B) Is not a part of the missile - so it doesnt chase it's tail :)

E.g.
"prop_wire_thruster" may not be a good idea, as the missile has one!
...although the plain old GMod keypad thruster "prop_thruster" may be ok...
and "prop_physics" is basically everything else that moves...

You could weld a unique item to your target if its not already a unique type.

Link to addon for checking names:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=159298542
fggfhfgdhjgdsf 30 May, 2018 @ 4:24am 
Also this is a great SAM. would be cool if someone invented a device to find the exact name of X prop and maybe target it aswell
*fu* Dr.n00b  [author] 29 May, 2018 @ 2:06pm 
Thanks! You should check out my April Fool toilet missile. :)
fggfhfgdhjgdsf 29 May, 2018 @ 5:44am 
This is the best thing ever
Seraphoptera 8 Oct, 2017 @ 5:32pm 
Oh it doesn't ;-; Thank you again!
SCREAMBLADE 8 Oct, 2017 @ 5:22pm 
no worries
HaVe A gOoD dAy
*fu* Dr.n00b  [author] 8 Oct, 2017 @ 4:46pm 
Cheers Screamblade - praise KEK
SCREAMBLADE 8 Oct, 2017 @ 4:43pm 
HEY.... HEY,... if your seeing this it means i aprove of this dupe.... IT IS AMAZING TOP NOTCH QUALITY!!!!!!!!
*fu* Dr.n00b  [author] 8 Oct, 2017 @ 4:32pm 
List of classes:
https://developer.valvesoftware.com/wiki/List_of_entities#NPC_entities

PS: The chopper can't be killed with explosives!

-- you can also use wildcards (*)

To shoot any random NPC...

!fire:1:class:npc*
Seraphoptera 8 Oct, 2017 @ 2:46pm 
How do I do it for the Combine soldiers, choppers, etc? And for any general other NPC other than the G-Man? I'm having a little trouble with it. :)
Kahuna Javascriptson 8 Oct, 2017 @ 11:31am 
cool af
Rikatsu 8 Oct, 2017 @ 9:16am 
amaizing
Seraphoptera 8 Oct, 2017 @ 9:06am 
Oh thank you! :steamhappy:
*fu* Dr.n00b  [author] 8 Oct, 2017 @ 2:15am 
!fire:1:name:Koalawolf22

And this is the command to shoot yourself :) just click & spawn new missiles far away.
*fu* Dr.n00b  [author] 8 Oct, 2017 @ 2:10am 
!fire:1:class:npc_citizen

is a complete command to go and attack a basic NPC
*fu* Dr.n00b  [author] 8 Oct, 2017 @ 2:07am 
"name" and "class" are just constants to be typed and do not change.

They are used to tell the missile to search for a player name OR a class of gmod object.

E.g a player could have the name "npc_gman"
Seraphoptera 7 Oct, 2017 @ 7:45pm 
What is the type/name/class? What should I enter there?
*fu* Dr.n00b  [author] 6 Oct, 2017 @ 12:00pm 
Thanks Turkish_Gamer!
*fu* Dr.n00b  [author] 6 Oct, 2017 @ 12:00pm 
You need to type in chat (team chat may be safer than global).

If they missile accepts the command it hides the chat from others so you are not spamming the server.

If you misspell it or if the missile is not spawned, then it will go to normal chat - so team chat may be safer than global.

If you are extra paranoid, you could change the "!fire" command to "!love" in the E2 chip. :)

Dont forget the "1" as its the default ID of the missile (Still to implement setting of IDs)

I've added some text in the main description to describe the breakdown of the message.
ᛤ CaiPott 6 Oct, 2017 @ 10:30am 
so cool :D
𝕋𝕖𝕣𝕣𝕪1 5 Oct, 2017 @ 10:58pm 
do I type it in the console or chat
*fu* Dr.n00b  [author] 5 Oct, 2017 @ 2:08pm 
Glad you like it! :) :happypug:
Inflexible Tim 4 Oct, 2017 @ 11:43am 
cool
*fu* Dr.n00b  [author] 1 Oct, 2017 @ 2:23pm 
Pro-Tip: Delete/disconnect the explosives for sneaky precision propkills!