Changeing Weapons

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
.FuSe.
Lance Corporal
Posts: 10
Joined: Tue Dec 16, 2003 11:36 pm
Contact:

Changeing Weapons

Post by .FuSe. »

have quite the question here ..probably cant be done but worth a shot
i am looking for a way to change/reload the weapons tik files through console
i am thinking there must be a way to do this through script
basically i want to do this
go from all weapons enabled to sniper only with a 50 round clip
any ideas or suggestions would be great
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

there are plenty of server side sniper only moda that go up to 10 bullets in a clip. check one out and see how its done.
.FuSe.
Lance Corporal
Posts: 10
Joined: Tue Dec 16, 2003 11:36 pm
Contact:

Post by .FuSe. »

nope i have those and have the tik files i want
want i want to do though is switch between the modded sniper only and all weapons with out shuting down the server
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

well what u can do it make all the other weapons not do damage. put something like this in ur script:
$restrict remove
$allweap show

local.dmg = 1

snipeonly:
local.dmg = 1
$allweap show
$restrict remove
end

allweapons:
local.dmg = 2
$allweap remove
$restrict show
end

if (local.dmg = 1) {
self immune bash
self immune bullet
self immnue shotgun
}

put a trigger->use in your map and give it these key/value
setthread allweapons
targetname allweap

put anoterh trigger use on top o it with these key/value
setthread snipeonly
targetname restrict

those command wont work alone, u have to find a way to target all the players. im sure someone here knows how to do it.

btw, this might be totally wrong, its just my guess, i bet there is an easier way to do it.
.FuSe.
Lance Corporal
Posts: 10
Joined: Tue Dec 16, 2003 11:36 pm
Contact:

Post by .FuSe. »

how about a way to just change the tik file like load up shotgun1.tik as apposed to shotgun.tik and have the shotgun1.tik load up as the origional shotgun just with out the ammo?
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

well, since all guns are server side, just mod the regular gun tiks, u wouldnt have ot load 1 or two. though this way you couldnt really change back and fourth...... i dont think there is a way to use shotgun1.tik over shotgun.tik
Post Reply