Garry's Mod

Garry's Mod

Kekistani Cruise Missile (KCM Mk1) by Dr.n00b
31 条留言
*fu* Dr.n00b  [作者] 2018 年 5 月 31 日 上午 9:36 
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  [作者] 2018 年 5 月 31 日 上午 9:33 
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 2018 年 5 月 31 日 上午 6:47 
or all props
fggfhfgdhjgdsf 2018 年 5 月 31 日 上午 6:46 
I can't really target a specific prop, i try but its an error, i can only target npcs or thrusters etc.
fggfhfgdhjgdsf 2018 年 5 月 31 日 上午 4:42 
thanks
*fu* Dr.n00b  [作者] 2018 年 5 月 30 日 下午 2:06 
Its fun if the aircraft is made out of wood!
*fu* Dr.n00b  [作者] 2018 年 5 月 30 日 下午 2:05 
It might actually be called "gmod_thruster" oops

Try:

!fire:1:class:gmod_thruster

against a bog standard non-wiremod "aircraft"
*fu* Dr.n00b  [作者] 2018 年 5 月 30 日 下午 2:00 
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=159298542
fggfhfgdhjgdsf 2018 年 5 月 30 日 上午 4:24 
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  [作者] 2018 年 5 月 29 日 下午 2:06 
Thanks! You should check out my April Fool toilet missile. :)
fggfhfgdhjgdsf 2018 年 5 月 29 日 上午 5:44 
This is the best thing ever
Seraphoptera 2017 年 10 月 8 日 下午 5:32 
Oh it doesn't ;-; Thank you again!
SCREAMBLADE 2017 年 10 月 8 日 下午 5:22 
no worries
HaVe A gOoD dAy
*fu* Dr.n00b  [作者] 2017 年 10 月 8 日 下午 4:46 
Cheers Screamblade - praise KEK
SCREAMBLADE 2017 年 10 月 8 日 下午 4:43 
HEY.... HEY,... if your seeing this it means i aprove of this dupe.... IT IS AMAZING TOP NOTCH QUALITY!!!!!!!!
*fu* Dr.n00b  [作者] 2017 年 10 月 8 日 下午 4:32 
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 2017 年 10 月 8 日 下午 2:46 
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 2017 年 10 月 8 日 上午 11:31 
cool af
Rikatsu 2017 年 10 月 8 日 上午 9:16 
amaizing
Seraphoptera 2017 年 10 月 8 日 上午 9:06 
Oh thank you! :steamhappy:
*fu* Dr.n00b  [作者] 2017 年 10 月 8 日 上午 2:15 
!fire:1:name:Koalawolf22

And this is the command to shoot yourself :) just click & spawn new missiles far away.
*fu* Dr.n00b  [作者] 2017 年 10 月 8 日 上午 2:10 
!fire:1:class:npc_citizen

is a complete command to go and attack a basic NPC
*fu* Dr.n00b  [作者] 2017 年 10 月 8 日 上午 2:07 
"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 2017 年 10 月 7 日 下午 7:45 
What is the type/name/class? What should I enter there?
*fu* Dr.n00b  [作者] 2017 年 10 月 6 日 下午 12:00 
Thanks Turkish_Gamer!
*fu* Dr.n00b  [作者] 2017 年 10 月 6 日 下午 12:00 
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 2017 年 10 月 6 日 上午 10:30 
so cool :D
𝕋𝕖𝕣𝕣𝕪1 2017 年 10 月 5 日 下午 10:58 
do I type it in the console or chat
*fu* Dr.n00b  [作者] 2017 年 10 月 5 日 下午 2:08 
Glad you like it! :) :happypug:
Notorious R. A. T. 2017 年 10 月 4 日 上午 11:43 
cool
*fu* Dr.n00b  [作者] 2017 年 10 月 1 日 下午 2:23 
Pro-Tip: Delete/disconnect the explosives for sneaky precision propkills!