Garry's Mod

Garry's Mod

Not enough ratings
Kekistani Cruise Missile (KCM Mk1) by Dr.n00b
   
Award
Favorite
Favorited
Unfavorite
Content Type: Dupe
Dupe Tags: Machines
File Size
Posted
15.430 KB
30 Sep, 2017 @ 3:41pm
1 Change Note ( view )

Subscribe to download
Kekistani Cruise Missile (KCM Mk1) by Dr.n00b

In 1 collection by *fu* Dr.n00b
Kekistani Weapon Tech
8 items
Description
"This missile unleashes fire and fury like the world has never seen, on GMOD"
- God Emperor Trump

A 100% thruster driven cruise missile! - no teleport or applyforce.

...also launches from deep underwater - hide dem missiles from the normies!

Feel free to add it to ships/submarines/planes/tanks/dogs etc

HOW TO USE:

Chat commands (type in either team or global chat) - text is hidden if accepted by the missile, all other chat is displayed as normal - so team chat might be safer if you have trouble spelling!

(Player names need to be precise, but class names can use wildcards):
!fire:1:name:YourTargetPlayerFullName (Copy paste from chat history if annoying spelling) !fire:1:class:npc_gman !fire:1:class:npc* !fire:1:class:player* (<-- shoot a random player - untested - might work!) .. and other classes, props etc!

List of classes:
https://developer.valvesoftware.com/wiki/List_of_entities#NPC_entities

IMPORTANT NOTES:

To stop new missiles from following your commands - type some random stuff in chat to clear the last command!

PRO-TIPS:

The command can also be bound to keys (using the console once) for quick fire.
bind yourkey "say !fire:1:class:npc*"

If more than one target matches, it will randomly select one, so you can spam missiles and they will eventually get them all!

If the target dies by some other means, the missile will fly to a random point and detonate.

Missiles will AutoRepeat (execute the last command) immediately after spawning - if that is the last thing you typed (see impt note above) so you can just "type once - dupe many, whilst running around laughing"

DETAILS:

The command is in 4 parts separated by ":" colons so you can target people with spaces in their names:
Part 1 "!fire" - indicates a missile command in chat Part 2 "1" - missile ID (always 1 for now) Part 3 "name/class/model" - indicates type of "find" command used by the missile Part 4 "TargetPlayerName/npc_gman/RagdollModelName" - specifies actual target

KNOWN ISSUES:

ACF Note: It may spiral out of control on some ACFmod servers, as they have non-standard physics settings to make their ACF engine parts run faster. One possible solution is to weld a 6x1x1 unit "tail" to the missile to make it longer and more rotationally stable - just like a firework rocket has a stick!

"I'm upgrading ya stupid missile but repeated duping causes the wiremod components slide off".
This seems to be a bug when using the standard Duplicator tool with Wiremod. Use the "Advanced Duplicator 2" tool from the workshop to do any repeated duping.

KNOWN BUGS (+workarounds till a Mk2 release):

Issue: There's a normal "trail" attached to the "wire trail" so its permamently on.
Workaround: Clear (Right click) the "trail" off the "wire trail" using the standard "trail" tool - then resave as a private dupe.

Issue: Text appearing after everything I type.
Workaround1: Only spawn missile when needed (Aka the Steve Jobs iPhone fix).
Workaround2: Edit code in E2 (See Post#5 in the "Bugs" discussion forum to move one line of code) - then resave as a private dupe.

Issue: I add it to my ship, and my ship sinks (the launcher base is very heavy to stop it moving).
Workaround1: Use a "weight tool" (get from workshop) to change the launcher weight from 100000kg to something smaller. - then resave as a private dupe.
Workaround2: Remove the "wire weld" from the missile and reattach the missile direct to your ship with a new "wire weld" (Wire it to the E2's "Clamp" output). (Pro-tip: attach a breakable rope to link it to your prop for duping!)

---

Get your own Trump cut out from "JIGSAW's" workshop.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=523628707
Popular Discussions View All (1)
5
6 Oct, 2017 @ 12:38pm
Bugs
*fu* 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. :)