Search found 21 matches

by Wertmanzzz
Wed Nov 22, 2006 8:53 pm
Forum: Scripting
Topic: New Scripting Project
Replies: 21
Views: 2213

Em a bit stupid answer maybe but you could say, instead of local.badplace istouching local.badboy, use local.badboy istouching local.badplace, or, instead of local.badplace use $badplace.
If this works then I'm laughinh :P

Edit: and it could also be that, because of the trigger being local, it ...
by Wertmanzzz
Tue Nov 21, 2006 10:35 am
Forum: Scripting
Topic: Ok, now I'm stuck.
Replies: 2
Views: 512

Srry m8, didnt work :(
by Wertmanzzz
Sun Nov 19, 2006 9:41 pm
Forum: Scripting
Topic: Ok, now I'm stuck.
Replies: 2
Views: 512

Ok, now I'm stuck.

Hey there folks, I'm almost done with my headbangmod, only there's only 1 thing remaining, that's the damaging of the other player. :?
Here's what I want to do in words:


killthread local.player:
headtrigger_# triggerable (make sure that it's triggerable)
if local.player exists
{
wait until ...
by Wertmanzzz
Thu Nov 16, 2006 3:00 pm
Forum: Scripting
Topic: Pop-Up Target Help
Replies: 24
Views: 2146

I think you could best spawn triggers around the crates, and waittill they get hit, then delete the whole thing and wait until the rest is shot


// put this in case #
level.trigger = spawn trigger_multiple
level.trigger.targetname = $( "trigger" + local.i )
$trigger#.origin = $blacktarget#.origin ...
by Wertmanzzz
Sun Nov 12, 2006 12:36 pm
Forum: Scripting
Topic: Looking to something
Replies: 7
Views: 885

A bit off topic but I made a state headbang and I want to recall that in mike_torso (or mike_legs of mike) so only if in that state you can actually hurt people.

I found
This
But It doesn't says how to 'implant it as a script'.
How can you do that :?, thanks already :)
by Wertmanzzz
Sun Nov 12, 2006 11:54 am
Forum: Scripting
Topic: Looking to something
Replies: 7
Views: 885

Thanks Rookie one :)
But there was a much simpler solution :)

// bang!
local.player.state = HEADBANG
local.player.viewangles = local.player.viewangles - ( 0 0 0 )
waitframe
local.player.viewangles = local.player.viewangles - ( -21.5 0 0 )
waitframe
local.player.viewangles = local.player ...
by Wertmanzzz
Sat Nov 11, 2006 7:45 pm
Forum: Scripting
Topic: Looking to something
Replies: 7
Views: 885

Ok, i'll explain :)

I'm working on a small mod, i'll bring it out as soon as possible :)
I call it the headbangmod, in which case you have to headbang each other to death :twisted: 8-) , the only problem is I can't get the player to bend it's entire torso 90 degrees (or a bit less) downward (like ...
by Wertmanzzz
Sat Nov 11, 2006 12:23 pm
Forum: Scripting
Topic: Looking to something
Replies: 7
Views: 885

Looking to something

Hey there folks,
Very simple question, but I can't solve it...
How can I let a player look towards something with his whole body?
Thanks,
Wertmanzzz
by Wertmanzzz
Sun Nov 05, 2006 1:54 pm
Forum: Scripting
Topic: Functions/threads whatever they are called...
Replies: 13
Views: 1143

:cry: too bad, but yeah then I'll give it up (for now 8-) )
Thanks for the quick reply :)
by Wertmanzzz
Sun Nov 05, 2006 11:07 am
Forum: Scripting
Topic: Functions/threads whatever they are called...
Replies: 13
Views: 1143

This is just an example, but why do the rest work then,
like huddraw_string( Integer index, String string )
I don't get that, it's the same only then with less arguments,
Aren't they internal then?
by Wertmanzzz
Sat Nov 04, 2006 8:54 pm
Forum: Scripting
Topic: Functions/threads whatever they are called...
Replies: 13
Views: 1143

Functions/threads whatever they are called...

A bit newbie question but idc.

How do I call for example this:

gotkill( Entity victim, Integer damage, Entity inflictor, Integer meansofdeath, Boolean gib )

I tried alotta stuff but with each integer it says BAD_TOKEN:
TOKEN_INTEGER ... blablabla and that stuff... how must I call it?
Thanks alot ...
by Wertmanzzz
Wed Oct 25, 2006 11:58 am
Forum: Scripting
Topic: Uhm, this is interesting...
Replies: 8
Views: 1607

Memory block wrote past end? what? lol?
How could that be?
by Wertmanzzz
Mon Oct 23, 2006 8:17 pm
Forum: Scripting
Topic: Commands - List them and what they do
Replies: 50
Views: 17531

:( ok. Well then no scores :D, lol.
Cya next time
by Wertmanzzz
Mon Oct 23, 2006 4:57 pm
Forum: Scripting
Topic: Commands - List them and what they do
Replies: 50
Views: 17531

Uhm i don't know what I am doing wrong...


iprintlnbold_noloc ( "Flagholder his kills " + local.flagholder.kills + ", kill him!" )


I used this in Mohdm4...
The game message returned was NIL

*Note: I first did this:

iprintlnbold_noloc ( "Flagholder his kills " + local.flagholder.kills ...
by Wertmanzzz
Mon Oct 23, 2006 1:24 pm
Forum: Scripting
Topic: Commands - List them and what they do
Replies: 50
Views: 17531

Hey uhm i found this in the tut's :

my_method:
for ( local.index =5; local.index < 20 ; local.index ++ )
{
iprintlnbold_noloc "Bla nr. " + local.index
wait 2
}
end

(It's under Methods)
But I can't get that + local.index right.
The MOHAA console ALWAYS says
BAD_TOKEN:
'+'

iprintlnbold ...