m5l1b.scr:
// Mackey was seen in this locale.
exec global/ai.scr
exec global/exploder.scr
exec global/loadout.scr "maps/m5l1b.scr"
$intro_door notsolid
// fadeout 0 0 0 0 1
fadeout .1 0 0 0 1
for (local.i=1;local.i<$tank_block.size+1;local.i++)
$tank_block[local.i] notsolid
level ...
Search found 24 matches
- Wed Nov 18, 2009 8:37 pm
- Forum: Scripting
- Topic: clock timer override
- Replies: 4
- Views: 1119
- Tue Nov 17, 2009 8:17 pm
- Forum: Scripting
- Topic: tank help!!
- Replies: 9
- Views: 2265
- Sun Nov 15, 2009 6:48 pm
- Forum: Scripting
- Topic: tank help!!
- Replies: 9
- Views: 2265
- Thu Nov 12, 2009 8:05 pm
- Forum: Scripting
- Topic: Recording a camera
- Replies: 2
- Views: 951
- Wed Nov 04, 2009 12:06 am
- Forum: Scripting
- Topic: Custom rcon commands?
- Replies: 1
- Views: 782
Custom rcon commands?
I there a way to create real rcon commands?
Setting cvars is nice and all, but only allows for one argument.
Not 0 or > 1.
At the moment i've got a 'command' that needs 2 parameters and i do that by supplying 2 cvars with data, but there a catch, i have to type 2 rcon commands.
At the moment i've ...
Setting cvars is nice and all, but only allows for one argument.
Not 0 or > 1.
At the moment i've got a 'command' that needs 2 parameters and i do that by supplying 2 cvars with data, but there a catch, i have to type 2 rcon commands.
At the moment i've ...
- Tue Nov 03, 2009 1:27 pm
- Forum: Scripting
- Topic: Music Help
- Replies: 12
- Views: 2182
- Mon Nov 02, 2009 6:01 pm
- Forum: Scripting
- Topic: Music Help
- Replies: 12
- Views: 2182
- Sat Oct 31, 2009 10:55 am
- Forum: Scripting
- Topic: $player in a global file?
- Replies: 3
- Views: 965
- Fri Oct 30, 2009 7:56 pm
- Forum: Scripting
- Topic: $player in a global file?
- Replies: 3
- Views: 965
$player in a global file?
I'm (still) doing some mods and I'm busy with some stuff that needs to work for all levels, so in some global script.
There is just a problem, when I try to use $player in that script (for example DMprecache.scr) it goes horribly wrong.
Is it possible to use $player (or something else that lets me ...
There is just a problem, when I try to use $player in that script (for example DMprecache.scr) it goes horribly wrong.
Is it possible to use $player (or something else that lets me ...
- Sun Oct 25, 2009 8:47 pm
- Forum: Scripting
- Topic: script keeps repeating
- Replies: 2
- Views: 888
Re: script keeps repeating
Try this
pistol:
while(1)
{
for (local.p=1;local.p<=$player.size;local.p++)
{
local.player = $player[local.p]
if (local.player.taken != 1) {
local.player takeall
local.player give models/weapons/silencedpistol.tik // allied pistol
waitframe
local.player useweaponclass pistol
local.player ...
pistol:
while(1)
{
for (local.p=1;local.p<=$player.size;local.p++)
{
local.player = $player[local.p]
if (local.player.taken != 1) {
local.player takeall
local.player give models/weapons/silencedpistol.tik // allied pistol
waitframe
local.player useweaponclass pistol
local.player ...
- Sun Oct 11, 2009 8:37 pm
- Forum: Scripting
- Topic: Checking if a player has a gun.
- Replies: 6
- Views: 1127
- Sun Oct 11, 2009 6:53 pm
- Forum: Scripting
- Topic: Checking if a player has a gun.
- Replies: 6
- Views: 1127
- Sun Oct 11, 2009 2:34 pm
- Forum: Scripting
- Topic: Checking if a player has a gun.
- Replies: 6
- Views: 1127
Checking if a player has a gun.
I'm busy building a pistol-only area in a map and I've into a problem.
As soon as you enter the area I give a 'useweaponclass pistol'.
This works fine, but if the player dropped its pistol this doesn't do anything.
If the player doesn't have a pistol I want to force the player to holster the ...
As soon as you enter the area I give a 'useweaponclass pistol'.
This works fine, but if the player dropped its pistol this doesn't do anything.
If the player doesn't have a pistol I want to force the player to holster the ...
- Sun Oct 11, 2009 1:37 pm
- Forum: Scripting
- Topic: Random Spots
- Replies: 2
- Views: 939