|
Objects spawning ?
#426777
07/29/13 13:34
07/29/13 13:34
|
Joined: Jul 2012
Posts: 45
Gino_Fabrizio
OP
Newbie
|
OP
Newbie
Joined: Jul 2012
Posts: 45
|
Hi there, its me again In the proccess of making my FPS game of zombies, I have a trouble , a big one I make the map using "small.hmp", and then I spawn manually tree models on the sides for the player dont leave the map, and I also load the level endless to make it better. Then I spawn trees and grassess for the map using "ent_terrain_place", to spawn it randomly. The idea is to make a "cementery", Im using all dark possible. The problem is that I make the player to search a pistol to use, but when I spawn the pistol with "ent_terrain_place", it get bad... sometimes it spawn inside a tree, or in a tree of the side that is blocking the player to leave the cementery, so he cant pick up the pistol for pick up, I make an action that checks the player dist to be <= 70 and he have to press the "E" key to pick up. So I want to know a way to spawn the pistol far from trees, if there is any way, thanks you
|
|
|
Re: Objects spawning ?
[Re: Gino_Fabrizio]
#426787
07/29/13 14:37
07/29/13 14:37
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
http://www.conitec.net/manual_d/level_c.htment_seed (char* name, ENTITY* terrain, BMAP* mask, COLOR* color, var dist, var mode, EVENT act): var
greets
Last edited by rayp; 07/29/13 14:38.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: Objects spawning ?
[Re: Ch40zzC0d3r]
#426791
07/29/13 14:56
07/29/13 14:56
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
As i said above. I would trace to look if the position is free for the gun ( or a c_scan ). Also i would use ent_create for the gun. But placing vegetation without seed map CANT be good btw.
Last edited by rayp; 07/29/13 14:57.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
|