![]() |
|
Help Spawn entity, add collision etc help - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Help Spawn entity, add collision etc help (/Thread-Help-Spawn-entity-add-collision-etc-help.html) Pages:
1
2
|
Spawn entity, add collision etc help - Lemon - 07-20-2011 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. RE: Spawn entity, add collision etc help - Madnesslink5 - 07-20-2011 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. RE: Spawn entity, add collision etc help - Gladio - 07-21-2011 (07-20-2011, 00:32)Lemon Wrote: I want to spawn the model of this: 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 RE: Spawn entity, add collision etc help - AZUMIKKEL - 07-21-2011 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;
}RE: Spawn entity, add collision etc help - Lemon - 07-21-2011 @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. RE: Spawn entity, add collision etc help - AZUMIKKEL - 07-21-2011 Well no.. I do not think that's possible, even with a map editor. RE: Spawn entity, add collision etc help - Lemon - 07-21-2011 (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? RE: Spawn entity, add collision etc help - Madnesslink5 - 07-21-2011 (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. 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. RE: Spawn entity, add collision etc help - iAegle - 07-21-2011 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/Call_of_Duty_5:_Collision_Brushes RE: Spawn entity, add collision etc help - Lemon - 07-21-2011 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. |