Console

Obsidian General.
User avatar
BlyTwo
Polygon
Polygon
Posts: 26
Joined: Thu Oct 07, 2010 9:54 am
Location: Afterlife
Contact:

Console

Post by BlyTwo »

I've been looking around, but I can't find a script that creates a damaging explosion directly on the crosshair any insight anyone?
User avatar
Datastream
Donator
Donator
Posts: 870
Joined: Thu Dec 24, 2009 1:24 pm

Post by Datastream »

I assume you're talking about ent_fire !picker?

At least I think it was !picker. maybe ent_fire !picker explode?
I'm no magician on this but I do know ent_fire !picker kill
User avatar
BlyTwo
Polygon
Polygon
Posts: 26
Joined: Thu Oct 07, 2010 9:54 am
Location: Afterlife
Contact:

Post by BlyTwo »

ya I am referring to the ent_fire command , the explode command works when using a combine-ball but it does no damage, just an effect
I want to spawn a barrel or gascan or somrthing and trigger it to blast, then I can double up the spawn and explode in one bind and you won't even see the prop, just an explosion

pretty much I just need to spawn something (anything) that'll respond to some sort of method of instant and console controlled detonation

if anyone has any ideas, let me know and I'll experiment
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary »

Never used ent_fire to create anything, ent_create can make stuff, but I never use it.

If you just want to kill stuff, "ent_fire !picker sethealth 0" always works for me. Breaks most props and kills pretty much any NPC.
User avatar
BlyTwo
Polygon
Polygon
Posts: 26
Joined: Thu Oct 07, 2010 9:54 am
Location: Afterlife
Contact:

Post by BlyTwo »

I knwo that, but I need a prop that will explode with a command (explode and do damage)
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary »

Okay, I did a little playing around with Source for you.

"ent_create rpg_missile" will spawn a rpg rocket at your crosshair, if you use it while looking at the ground, it will fire an unguided missile along the floor.l

"Ent_create npc_grenade_frag; ent_fire !picker settimer 0" will spawn a grenade at your crosshair and set it's timer to 0, causing it to explode.

Have fun.
User avatar
BlyTwo
Polygon
Polygon
Posts: 26
Joined: Thu Oct 07, 2010 9:54 am
Location: Afterlife
Contact:

Post by BlyTwo »

thanks much, this'll be fun, I knew about the grenade (zombine grenade) but it didn't do crap all (what a let-down) lol
User avatar
Mr. Someguy
npc_hunter
npc_hunter
Posts: 512
Joined: Fri Dec 22, 2006 11:40 pm
Location: Pennsylvania

Post by Mr. Someguy »

The npc_grenade has been there pre-zombine.I remember playing with it in Gmod9.
Image
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary »

npc_grenade_frag is the entity spawned when ever an grenade is thrown.
User avatar
BlyTwo
Polygon
Polygon
Posts: 26
Joined: Thu Oct 07, 2010 9:54 am
Location: Afterlife
Contact:

Post by BlyTwo »

haha the grenade is a dud if you spawn it when your crosshair is on a prop
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary »

Heh, not surprised, it was a pretty crappy idea to begin with.

Hopefully the rpg rocket spawning works better for your needs.
User avatar
BlyTwo
Polygon
Polygon
Posts: 26
Joined: Thu Oct 07, 2010 9:54 am
Location: Afterlife
Contact:

Post by BlyTwo »

the rocket spawns nice, but it doesn't detonate manually, and it always travels in one direction, no matter where I spawn
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary »

try "ent_create grenade_ar2"
User avatar
BlyTwo
Polygon
Polygon
Posts: 26
Joined: Thu Oct 07, 2010 9:54 am
Location: Afterlife
Contact:

Post by BlyTwo »

that works great, thanks

the next hard thing I am trying to do is to fire a sawblade without the gravgun and even better if I can make it invisible, been poking around a hell of a lot, can't seem to find a way, any insight?
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary »

Um... I have to look into that for you. Never tried something like that before.
Post Reply