Posts: 1,911
Threads: 183
Joined: Nov 2010
Reputation:
35
07-20-2011, 00:32
(This post was last modified: 07-21-2011, 01:30 by Lemon.)
I want to spawn the model of this:
Add collision to it so that zombies cannot pass through. But survivor team should be able to pass through the barricade.
Thanks, Lemon.
Edit: my priority is to give it collision.
Posts: 184
Threads: 11
Joined: May 2011
Reputation:
1
Don't think it's possible to spawn a collision just for one team. You could however have no collision, but put a trigger_radius on it where if the player is on axis/allies, it pushes them back.
Posts: 481
Threads: 26
Joined: Nov 2010
Reputation:
10
07-21-2011, 00:37
(This post was last modified: 07-21-2011, 00:45 by Gladio.)
(07-20-2011, 00:32)Lemon Wrote: I want to spawn the model of this:
Add collision to it so that zombies cannot pass through. But survivor team should be able to pass through the barricade.
Thanks, Lemon.
You can apply collision after set desired height (54, 64, 128) , set jump or climb allowed for player and disable it for zombie,make trigger radius to disable it, triger position also can be used even to show hudicon on mini map, code to open and close garage in new map can help you to get moving baricade, need only change up and down with left and right
player can jump it but zombie only climb will look fun, in easy way enable oldschool jump for player only and set collision heght to 64
Posts: 4,530
Threads: 254
Joined: Nov 2010
Reputation:
65
Code: if(distance(barricadepos, zombie.origin) < 50)
{
zombie setOrigin(zombie.origin+(0,0,20));
zombie setVelocity(2000, 0, 0);
wait 0.01;
zombie setVelocity(2000, 0, 0);
wait 0.01;
zombie setVelocity(2000, 0, 0);
wait 0.01;
}
Adjust setVelocity and you'll make the zombies shoot away from the barricade.
Posts: 1,911
Threads: 183
Joined: Nov 2010
Reputation:
35
07-21-2011, 01:22
(This post was last modified: 07-21-2011, 01:28 by Lemon.)
@ AZUMIKKEL Thanks but that's not I want zombies should be able to stay next to the barricade in order to punch them.
@ Gladio they should be like a care package barricade in a zombie mod. Everything should stay normal(climb, jump, velocity etc.) all I want is to give it collision and it would be nice if humans can pass through it.
Posts: 4,530
Threads: 254
Joined: Nov 2010
Reputation:
65
Well no.. I do not think that's possible, even with a map editor.
Posts: 1,911
Threads: 183
Joined: Nov 2010
Reputation:
35
(07-21-2011, 01:27)AZUMIKKEL Wrote: Well no.. I do not think that's possible, even with a map editor.
What if no one can pass through, is there still no way to add collision?
Posts: 184
Threads: 11
Joined: May 2011
Reputation:
1
(07-21-2011, 01:34)Lemon Wrote: (07-21-2011, 01:27)AZUMIKKEL Wrote: Well no.. I do not think that's possible, even with a map editor.
What if no one can pass through, is there still no way to add collision?
spawncollision("collision_geo_128x128x128","collider",(X, Y, Z), (Xangle, Yangle, Zangle));
There are collisions other than 128x128x128 but I don't know the whole list, you can find it somewhere.
Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
07-21-2011, 14:11
(This post was last modified: 07-21-2011, 14:12 by iAegle.)
Code: collision = spawn( "trigger_radius", POSITION, 0, RADIUS, HEIGHT );
collision setContents( 1 );
not sure if it works in blops
edit: http://wiki.modsrepository.com/index.php...on_Brushes
Posts: 1,911
Threads: 183
Joined: Nov 2010
Reputation:
35
I want people to place barricades wherever they want and zombies to destroy them. Currently I'm using care packages:S and I need a better model.
|