Bsp model placement
Moderator: InsideQC Admins
7 posts
• Page 1 of 1
Bsp model placement
So what I've done is spawned 3 Bsp models in my level. When I place a new entity with the same "model" as the other, it offsets it to where the original model was placed. How do I get around that?
God I hope that made sense... I'm extremely tired.
God I hope that made sense... I'm extremely tired.
-

Error - InsideQC Staff
- Posts: 865
- Joined: Fri Nov 05, 2004 5:15 am
- Location: VA, USA
Re: Bsp model placement
are you updating the origin?
In my ctf mod, i allow players to toss ammo. But instead of a backpack, it will drop a BSP model of the ammo type
In my ctf mod, i allow players to toss ammo. But instead of a backpack, it will drop a BSP model of the ammo type
- Code: Select all
if (self.weapon == IT_LIGHTNING)
{
if (self.ammo_cells > 10)
{
self.ammo_cells = self.ammo_cells - 10;
ammo = 10;
class = "item_cells";
m ="maps/b_batt0.bsp";
}
else
//...
item = spawn();
item.owner = self;
makevectors(self.v_angle);
setorigin(item, self.origin + '0 0 16');
item.velocity = aim(self, 320);
item.velocity = item.velocity * 320;
item.flags = FL_ITEM;
item.solid = SOLID_TRIGGER;
item.movetype = MOVETYPE_BOUNCE;
item.aflag = ammo;
item.classname = class;
setmodel (item, m);
setsize (item, '0 0 0', '32 32 56');
item.touch = Team_Ammo_Touch;
item.nextthink = time + 20;//must remove or else we will run out of server entities!!
item.think = SUB_Remove;
W_SetCurrentAmmo();
- r00k
- Posts: 1110
- Joined: Sat Nov 13, 2004 10:39 pm
Re: Bsp model placement
It's not a seperatedly compiled Bsp model. It's an entity that's using the same model as a map defined entity.
-

Error - InsideQC Staff
- Posts: 865
- Joined: Fri Nov 05, 2004 5:15 am
- Location: VA, USA
Re: Bsp model placement
Nevermind. I solved it by using precompiled Bsp models. The original way was giving me too much pain.
Thanks anyways.
Thanks anyways.
-

Error - InsideQC Staff
- Posts: 865
- Joined: Fri Nov 05, 2004 5:15 am
- Location: VA, USA
Re: Bsp model placement
This gives me an idea to make a mini map in quakeC by taking a map and shrinking it down to 10% and spawning it in front of the player 
- r00k
- Posts: 1110
- Joined: Sat Nov 13, 2004 10:39 pm
Re: Bsp model placement
ala splinter cell?
a few people were discussing taking the map bsp, removing the roof, and flattening it to make a gta esque minimap a while ago.
i believe it was baker and mh.
a few people were discussing taking the map bsp, removing the roof, and flattening it to make a gta esque minimap a while ago.
i believe it was baker and mh.
-

gnounc - Posts: 424
- Joined: Mon Apr 06, 2009 6:26 am
Re: Bsp model placement
I'm making a hex grid turn based tactics style mod. Been playing a lot of board games recently.
-

Error - InsideQC Staff
- Posts: 865
- Joined: Fri Nov 05, 2004 5:15 am
- Location: VA, USA
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest