Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Spawn entity, add collision etc help
#1
Rainbow 
I want to spawn the model of this:
[Image: pruebas_008.jpg]
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.
Reply

#2
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.
Reply

#3
(07-20-2011, 00:32)Lemon Wrote: I want to spawn the model of this:
[Image: pruebas_008.jpg]
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
Reply

#4
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.
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#5
@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.
Reply

#6
Well no.. I do not think that's possible, even with a map editor.
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#7
(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?
Reply

#8
(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.
Reply

#9
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
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#10
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.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,735 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Spawn Message Playing on Respawn? Killjoy 7 5,231 07-11-2013, 14:53
Last Post: Killjoy
  [Release] Spawn Polygons and Pyramids Yamato 6 4,608 06-20-2013, 12:30
Last Post: Yamato
  Question on how to "Spawn" a flying rocket as a player? akillj 8 5,534 06-04-2013, 01:54
Last Post: rotceh_dnih
  Help pickup mod + spawn fx m4gicaL 1 2,668 03-07-2013, 17:52
Last Post: tadej
  Help No more free spawn influencers! JustDoingThisShit 0 5,087 02-03-2013, 20:21
Last Post: JustDoingThisShit
  W@W: Making player spawn with a custom default class. koil 9 5,452 01-13-2013, 12:10
Last Post: koil
  spawn object SaviouR9966 3 2,939 01-08-2013, 14:31
Last Post: 99IRock
  Help Spawn on predefined points problem islamsaab 2 2,831 09-29-2012, 21:23
Last Post: islamsaab
  [Release] Entity Extension v1.1 master131 26 13,474 09-17-2012, 07:12
Last Post: [Z00MBY] Alex

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.