Search found 26 matches

by AfterDeath
Sun Sep 05, 2004 7:47 am
Forum: Scripting
Topic: V2 Explosion
Replies: 5
Views: 248

Thanks a lot G3mInI! I will give that a try as soon as I have some free time :(

BTW I was on Area51's server tonight and saw some of what you made. Very nice stuff man! :wink:

I should be dropping by more often... maybe you'll remember me. Again, thanks :D
by AfterDeath
Sat Sep 04, 2004 12:03 am
Forum: Scripting
Topic: emptying an array
Replies: 6
Views: 209

The array is used to store a "stack" of messages that will be printed every X seconds. I need to be able to clear the array, so that only new text can be printed. I hope I make sense.
by AfterDeath
Wed Sep 01, 2004 5:00 am
Forum: Scripting
Topic: V2 Explosion
Replies: 5
Views: 248

V2 Explosion

I'm trying to copy the V2 explosion effect. However, looking into obj_team2.scr I can't figure out what part of the coding produces this effect. Here's the code (cleaned up):

main:
level waittill prespawn

exec global/DMprecache.scr

exec global/bomber.scr

level.script = maps/obj/obj_team2 ...
by AfterDeath
Wed Sep 01, 2004 3:49 am
Forum: Scripting
Topic: velocity of bullets
Replies: 8
Views: 360

I believe firedelay has to do with the interval between bullets being fired. For example, if the firedelay of an MG is set to 0.1, it will shoot 10 bullets per second.

For non-automatic weapons, it represents how long you have to wait til you can shoot again. If you were to set the firedelay of the ...
by AfterDeath
Wed Sep 01, 2004 3:46 am
Forum: Scripting
Topic: emptying an array
Replies: 6
Views: 209

Alright. Being that the array size is unknown... should the following work?

Code: Select all

while ($myarray.size > 0)
    $myarray remove


Thanks!
by AfterDeath
Wed Sep 01, 2004 2:57 am
Forum: Scripting
Topic: emptying an array
Replies: 6
Views: 209

emptying an array

I have an array, that gets populated throughout my script. I want to be able to "erase" the array (size goes back to 0 (empty) or -1 (non-existant)). How can I either delete or "empty" my array?

Note: it would not be looping through it setting it to 0 or "".

Thanks!
by AfterDeath
Wed Sep 01, 2004 2:53 am
Forum: Scripting
Topic: velocity of bullets
Replies: 8
Views: 360

It might be one of these numbers.

----------------------------------------------------------------------------------
Thompson SMG: Max Eff. Range is 50 yds with a muzzle velocity of 805 ft/s. (.45 ACP round)

firespreadmult 0.08 0.35 200 0.25 // add falloff cap maxtime
movementspeed 1.0 ...
by AfterDeath
Mon Aug 30, 2004 5:50 pm
Forum: Scripting
Topic: Static Model
Replies: 2
Views: 177

Static Model

I am using a very simple script to spawn a V2 rocket into a map.

local.v2 = spawn script_model
local.v2 model "static/v2.tik"
local.v2.origin = ( 224 96 50 )
local.v2.angle = 45
local.v2.scale = 0.8
local.v2 alwaysdraw
local.v2 notsolid

However, I am having some trouble as the rocket doesn't ...
by AfterDeath
Sun Aug 29, 2004 8:48 am
Forum: Scripting
Topic: Variable Variables?
Replies: 22
Views: 542

:shock: you are a true question machine... np though :)

Sorry :? I just want to really learn the "language" instead of somewhat blindly copy/pasting.

For some weird reason, not all code above level waittill spawn gets executed after map restart :?

Ok. In general, what kind of coding would I ...
by AfterDeath
Sun Aug 29, 2004 7:38 am
Forum: Scripting
Topic: Variable Variables?
Replies: 22
Views: 542

Have you set the level.targets_to_destroy variable somewhere at the beginning of your script (below level waittill spawn)?

That might be it. Why does it have to be AFTER level waittill spawn? Does it really matter?

Oh and allies and "allies" are both strings, doesn't matter if you put the ...
by AfterDeath
Sun Aug 29, 2004 7:15 am
Forum: Scripting
Topic: Variable Variables?
Replies: 22
Views: 542

1- Map has two bombs.
2- Attacking team sets one bomb.
3- Everyone in attacking team dies.
4- Round continues til bomb blows up, even though the attacking team is already dead, and even though defending team still win even after that bomb blows up.
It's a bug in mohaa... it happens on V2 too ...
by AfterDeath
Sat Aug 28, 2004 1:50 pm
Forum: Scripting
Topic: Variable Variables?
Replies: 22
Views: 542

Yup, I tried removing and everything still works. One problem I am having though (and can't figure it out) is this:

1- Map has two bombs.
2- Attacking team sets one bomb.
3- Everyone in attacking team dies.
4- Round continues til bomb blows up, even though the attacking team is already dead, and ...
by AfterDeath
Sat Aug 28, 2004 6:05 am
Forum: Scripting
Topic: Variable Variables?
Replies: 22
Views: 542

Thanks for the suggestions. However these work for a fixed number of bombs, and I am looking at something that works for a variable number of bombs.

One question though... why does V2 and Omaha do it differently, if in the end it all works the same? Why "waitframe" instead of "wait .1" ? Any ...
by AfterDeath
Fri Aug 27, 2004 6:02 pm
Forum: Scripting
Topic: Variable Variables?
Replies: 22
Views: 542

Oh thanks. I will make that change into my coding. Thanks for putting the time and effort into it.

I actually never liked my way of doing it, I just couldn't think of any other way. Probably due to my lack of knowledge... I didn't know what waitframe did or how to use it... but now I see it.

I ...
by AfterDeath
Fri Aug 27, 2004 4:14 pm
Forum: Scripting
Topic: Variable Variables?
Replies: 22
Views: 542

Clears it up a bit, but I'm still not sure how I'd use it. But because I don't need it at any cost at this point, I'll pass. Maybe latter on I'll run some tests to answer my own questions.

Though not exactly how I wanted it first, I got my thingie working in a very nice way which suffices. Thought ...