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
Changeing Weapons
Moderator: Moderators
-
omniscient
- Major General
- Posts: 694
- Joined: Tue Sep 16, 2003 12:02 am
-
omniscient
- Major General
- Posts: 694
- Joined: Tue Sep 16, 2003 12:02 am
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.
$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.
-
omniscient
- Major General
- Posts: 694
- Joined: Tue Sep 16, 2003 12:02 am
