Search found 51 matches
- Wed May 11, 2011 12:28 am
- Forum: QuakeC Programming
- Topic: how come this code doesnt get called?
- Replies: 4
- Views: 1132
- Tue May 10, 2011 7:42 pm
- Forum: QuakeC Programming
- Topic: how come this code doesnt get called?
- Replies: 4
- Views: 1132
how come this code doesnt get called?
void() Portal1Touch = {
// Handles touch with Blue portal
local float vel;
local vector org;
local vector oldvel;
local string temp2;
if (portal2_exist==0) return;
if (self.frags>time) return;
vel=vlen(other.velocity) + PORTAL_KICK;
oldvel = other.velocity;
org=portal_clip_player ...
// Handles touch with Blue portal
local float vel;
local vector org;
local vector oldvel;
local string temp2;
if (portal2_exist==0) return;
if (self.frags>time) return;
vel=vlen(other.velocity) + PORTAL_KICK;
oldvel = other.velocity;
org=portal_clip_player ...
- Sat May 07, 2011 11:40 pm
- Forum: Mapping
- Topic: tie a brush to an entity?
- Replies: 3
- Views: 2303
tie a brush to an entity?
hi. I want to make a wall in worldcraft and tie it to an entity. but when i do and then test it, the wall isnt there.
this is what i want to tie it to:
void() notwall =
{
self.solid = SOLID_BBOX;
self.classname = "invalidwall";
};
but when i tie a brush to an entity called notwall, it doesn ...
this is what i want to tie it to:
void() notwall =
{
self.solid = SOLID_BBOX;
self.classname = "invalidwall";
};
but when i tie a brush to an entity called notwall, it doesn ...
- Sat May 07, 2011 5:44 pm
- Forum: QuakeC Programming
- Topic: if entity touches another entity
- Replies: 6
- Views: 1716
ok, i got that done. but heres what im trying to do: i want a rocket to be entity 1, and a wall to be entity 2. so when the rocket hits the wall, something happens. but in worldcraft, when i tie a wall to entity 2 (the entity that makes rocket dissapear when rocket collides with it) and run the game ...
- Fri May 06, 2011 11:23 pm
- Forum: QuakeC Programming
- Topic: if entity touches another entity
- Replies: 6
- Views: 1716
- Fri May 06, 2011 10:05 pm
- Forum: QuakeC Programming
- Topic: if entity touches another entity
- Replies: 6
- Views: 1716
if entity touches another entity
how would i do this? example: if entity 1 touches entity 2 then do something
- Wed Nov 03, 2010 10:56 pm
- Forum: QuakeC Programming
- Topic: This code should work, right?
- Replies: 29
- Views: 5557
- Wed Nov 03, 2010 7:11 pm
- Forum: QuakeC Programming
- Topic: This code should work, right?
- Replies: 29
- Views: 5557
- Wed Nov 03, 2010 1:03 am
- Forum: QuakeC Programming
- Topic: This code should work, right?
- Replies: 29
- Views: 5557
- Tue Nov 02, 2010 10:46 pm
- Forum: QuakeC Programming
- Topic: This code should work, right?
- Replies: 29
- Views: 5557
- Tue Nov 02, 2010 7:41 pm
- Forum: QuakeC Programming
- Topic: This code should work, right?
- Replies: 29
- Views: 5557
- Tue Nov 02, 2010 6:32 pm
- Forum: QuakeC Programming
- Topic: This code should work, right?
- Replies: 29
- Views: 5557
- Tue Nov 02, 2010 5:24 pm
- Forum: QuakeC Programming
- Topic: This code should work, right?
- Replies: 29
- Views: 5557
This code should work, right?
I want the game to give the player a random weapon when impulse 123 is entered. This should work, right?
void () mystery_box =
{
if ( (random () = 0.1) )
{
self.items = IT_ROCKET_LAUNCHER;
}
else
{
if ( (random () = 0.2) )
{
self.items = IT_NAILGUN;
}
else
{
if ( (random () = 0.3 ...
void () mystery_box =
{
if ( (random () = 0.1) )
{
self.items = IT_ROCKET_LAUNCHER;
}
else
{
if ( (random () = 0.2) )
{
self.items = IT_NAILGUN;
}
else
{
if ( (random () = 0.3 ...
- Tue Nov 02, 2010 12:05 am
- Forum: QuakeC Programming
- Topic: if monsters killed = 10
- Replies: 5
- Views: 1629
- Mon Nov 01, 2010 11:39 pm
- Forum: QuakeC Programming
- Topic: if monsters killed = 10
- Replies: 5
- Views: 1629
if monsters killed = 10
i want to make my game so if i kill 10 zombies, then something happens. I have tried just about everything i could think of. this won't work:
and i have tried alot of similar stuff. nothing works! a little help?
Code: Select all
if (monsters_killed = 10)
{
something happens
};