Search found 51 matches

by ThePlasticBling
Wed May 11, 2011 12:28 am
Forum: QuakeC Programming
Topic: how come this code doesnt get called?
Replies: 4
Views: 928

nothing is printed
by ThePlasticBling
Tue May 10, 2011 7:42 pm
Forum: QuakeC Programming
Topic: how come this code doesnt get called?
Replies: 4
Views: 928

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(portal2_entity); o...
by ThePlasticBling
Sat May 07, 2011 11:40 pm
Forum: Mapping
Topic: tie a brush to an entity?
Replies: 3
Views: 1786

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 does...
by ThePlasticBling
Sat May 07, 2011 5:44 pm
Forum: QuakeC Programming
Topic: if entity touches another entity
Replies: 6
Views: 1250

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...
by ThePlasticBling
Fri May 06, 2011 11:23 pm
Forum: QuakeC Programming
Topic: if entity touches another entity
Replies: 6
Views: 1250

it says that the second entity is an unknown value
by ThePlasticBling
Fri May 06, 2011 10:05 pm
Forum: QuakeC Programming
Topic: if entity touches another entity
Replies: 6
Views: 1250

if entity touches another entity

how would i do this? example: if entity 1 touches entity 2 then do something
by ThePlasticBling
Wed Nov 03, 2010 10:56 pm
Forum: QuakeC Programming
Topic: This code should work, right?
Replies: 29
Views: 3979

Mystery box? Hmm sounds like you are making copy of nazi zombies. Take my advice. 1 learn to code. Look almoust all tutorials and quakec specs founded in tutorial section. Then try to merge some things ( like i merged money and exp tut to when i kill monster i get money) And remeber to use that == ...
by ThePlasticBling
Wed Nov 03, 2010 7:11 pm
Forum: QuakeC Programming
Topic: This code should work, right?
Replies: 29
Views: 3979

Mystery box? Hmm sounds like you are making copy of nazi zombies. Take my advice. 1 learn to code. Look almoust all tutorials and quakec specs founded in tutorial section. Then try to merge some things ( like i merged money and exp tut to when i kill monster i get money) And remeber to use that == ...
by ThePlasticBling
Wed Nov 03, 2010 1:03 am
Forum: QuakeC Programming
Topic: This code should work, right?
Replies: 29
Views: 3979

still doesn't work. what am i doing wrong?
by ThePlasticBling
Tue Nov 02, 2010 10:46 pm
Forum: QuakeC Programming
Topic: This code should work, right?
Replies: 29
Views: 3979

Hmmmmm. I just dont get it. when impulse 123 is entered, i don't get a random weapon. here is my code: void () mystery_box = { local float r; r = random (); if (r > 0.9) { self.items = self.items | IT_LIGHTNING; } else if (r > 0.8) { self.items = self.items | IT_SUPER_NAILGUN; } else if (r > 0.7) { ...
by ThePlasticBling
Tue Nov 02, 2010 7:41 pm
Forum: QuakeC Programming
Topic: This code should work, right?
Replies: 29
Views: 3979

would this give me a random weapon? I have it set to impulse 123: void () mystery_box = { local float r; r = random (); if (r > 0.9) { self.items = IT_ROCKET_LAUNCHER; } else if (r > 0.8) { self.items = IT_SUPER_SHOTGUN; } else if (r > 0.7) { self.items = IT_NAILGUN; } else if (r > 0.6) { self.items...
by ThePlasticBling
Tue Nov 02, 2010 6:32 pm
Forum: QuakeC Programming
Topic: This code should work, right?
Replies: 29
Views: 3979

would this work: so would this work: void () mystery_box = { if ( (random () = 0.1) ) { self.weapon = IT_ROCKET_LAUNCHER; } else { if ( (random () = 0.200001) ) { self.weapon = IT_NAILGUN; } else { if ( (random () = 0.3) ) { self.weapon = IT_SUPER_SHOTGUN; } else { if ( (random () = 0.4) ) { self.we...
by ThePlasticBling
Tue Nov 02, 2010 5:24 pm
Forum: QuakeC Programming
Topic: This code should work, right?
Replies: 29
Views: 3979

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) ) { self.items = I...
by ThePlasticBling
Tue Nov 02, 2010 12:05 am
Forum: QuakeC Programming
Topic: if monsters killed = 10
Replies: 5
Views: 1273

it says unkown value "monsters killed"
by ThePlasticBling
Mon Nov 01, 2010 11:39 pm
Forum: QuakeC Programming
Topic: if monsters killed = 10
Replies: 5
Views: 1273

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:

Code: Select all

if (monsters_killed = 10)
{
something happens
};
and i have tried alot of similar stuff. nothing works! a little help?