Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Thu Jun 20, 2013 2:41 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Changing weapons in maps?
PostPosted: Mon Sep 20, 2010 1:43 pm 
Offline
has joined the game

Joined: Sun Aug 22, 2010 1:25 pm
Posts: 31
Now, as far as i know, i should just have to change the classname inside the map file, so if i change "weapon_shotgun" to "weapon_nailgun", then a Nailgun will spawn instead of a Shotgun. Yet this does not work, what am i supposed to do?


Top
 Profile E-mail  
 
 Post subject: Re: Changing weapons in maps?
PostPosted: Thu Sep 23, 2010 7:49 pm 
Offline
did just hit his 750th monster
User avatar

Joined: Mon Sep 06, 2004 4:44 pm
Posts: 769
Location: Berlin, Germany
I don't think it works when you just change the map file with a text editor, you probably need to compile the map.

You can open the map you want to modify with the level editor and change the weapons there.


Top
 Profile  
 
 Post subject: Re: Changing weapons in maps?
PostPosted: Fri Sep 24, 2010 2:06 pm 
Offline
did just hit his 750th monster

Joined: Sun Aug 15, 2004 11:59 pm
Posts: 980
Location: Land of lumber jacks
Antispam measure: What is larger? The Sun or the Galaxy?: sun
You don't need to recompile if you just edit point based entities.

Any entity that is made of brushes needs to be compiled though.

_________________
http://plagueandpestilence.com/

https://twitter.com/GarthHendy

https://www.facebook.com/pages/Garth-Zo ... 5434211750


Top
 Profile E-mail  
 
 Post subject: Re: Changing weapons in maps?
PostPosted: Mon Sep 27, 2010 11:15 pm 
Offline
fired 300 rounds

Joined: Tue Oct 19, 2004 8:04 am
Posts: 356
Z008MJ wrote:
Yet this does not work, what am i supposed to do?


Maybe a silly question, but did you do things like re-package it as a .pk4, with an appropriate filename etc? How certain are you that it's picking up your .map file rather than the original one?

To confirm it's using your modified map file, I'd tweak the name of one of the entities, and use "listEntities" at the console to confirm it's picked up.

I've replaced map entities at runtime through the code simply by changing the classname property, so IMO what you've described should work fine. Maybe you're accidentally changing the entity name instead? (eg it might be "weapon_shotgun_1" for the 1st one added in the map)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group