Deleting things in stock map

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
chizzo
Lance Corporal
Posts: 18
Joined: Sat Mar 03, 2007 8:01 am

Deleting things in stock map

Post by chizzo »

I just want to know how to "delete" some statics model in a stock map.. I want to remove those threes in v2 but I dont deal with it..
STORMnl
Colour Sergeant
Posts: 96
Joined: Mon Oct 15, 2007 5:26 pm
Location: NIJMEGEN
Contact:

Post by STORMnl »

i can give you a answer on that one,,


lol


use a chainsaw
chizzo
Lance Corporal
Posts: 18
Joined: Sat Mar 03, 2007 8:01 am

Post by chizzo »

Interesante tu respuesta :?
User avatar
211476
Captain
Posts: 273
Joined: Fri Feb 29, 2008 2:20 am
Location: Arizona, USA
Contact:

Post by 211476 »

open up the map's source .map file and compile
Image
chizzo
Lance Corporal
Posts: 18
Joined: Sat Mar 03, 2007 8:01 am

Post by chizzo »

Is not a way to do that but by scripting?
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

Post by Aprop »

Via targetname, via entnum... via hex editor? However ya'll delete only models, clips'll stay...
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

No

Only if they have a targetname, entnum won't do you any good. And like Aprop said, most of the times, there will be a clip left. If the creator didn't use the model's solid bounding box.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

Post by Aprop »

Ahh my mistake.... you're right Soldier. Years ago i tested it only by console script command, it worked well, so I assumed it work in script too.
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

Post by Aprop »

Aprop wrote:Ahh my mistake.... you're right Soldier. Years ago i tested it only by console script command, it worked well, so I assumed it work in script too.

I was wrong. You can delete entities via entnum. Sor messad up a bit, but I still know 2 ways to do it...

first, via script

Code: Select all

killent 13
second, via console

Code: Select all

script *13 remove
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

So killent does work? Nice find, aprop, this is very interesting... :)
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
SilentAngel
Captain
Posts: 239
Joined: Wed Mar 12, 2008 8:27 pm

Post by SilentAngel »

humm so no ways to delate the clip too? or almost detect it in some way?
Post Reply