Scripting: Guns?

Post your scripting questions / solutions here

Moderator: Moderators

_rc_combat_rocks_
Sergeant
Posts: 74
Joined: Fri Dec 17, 2004 11:35 pm

Scripting: Guns?

Post by _rc_combat_rocks_ »

Hey all,

I'm trying to add weapons to what my player gets im my map.

Here's my code so far.

-------------------------------------------------------------
// Rage m1l1
// ARCHITECTURE: _rc_combat_rocks
// SCRIPTING: _rc_combat_rocks_

main:

setcvar "g_scoreboardpic" "none"

level waittill prespawn

$player item weapons/colt45.tik
$player item weapons/m1_garand.tik
$player item weapons/mp40.tik
$player item weapons/grenade.tik
$player item weapons/stg44.tik

$player ammo pistol 21
$player ammo smg 120
$player ammo rifle 72
$player ammo grenade 3
$player ammo mg 180

level waittill spawn

end
-------------------------------------------
and my precache:
-------------------------------------------
cache weapons/colt45.tik
cache weapons/m1_garand.tik
cache weapons/mp40.tik
cache weapons/grenade.tik
cache weapons/stg44.tik
-------------------------------------------



My problem: The Stg44 and the Nades don't appear in the game. (german's with stg44's never worked either).

I tried all the filenames i could think of, like bar.tik, stg44.tik, etc, and still the MG's and nades won't show up. Is there a tut somewhere or a list of all the gun name?


Thanks
_rc_combat_rocks_
identity theft

Post by identity theft »

Hi, i believe the correct names are:

weapons/steilhandgranate.tik
weapons/mp44.tik
_rc_combat_rocks_
Sergeant
Posts: 74
Joined: Fri Dec 17, 2004 11:35 pm

Post by _rc_combat_rocks_ »

thanks. Those are great!

Do you know a list for all the guns I can go view?
_rc_combat_rocks_
identity theft

Post by identity theft »

trying looking in pak0.pk3, the tik's should be under models/weapons or something like that.
_rc_combat_rocks_
Sergeant
Posts: 74
Joined: Fri Dec 17, 2004 11:35 pm

Post by _rc_combat_rocks_ »

"trying looking in pak0.pk3, the tik's should be under models/weapons or something like that."

This may sound like a dumb question, but how do I open the pak0.pk3?[/quote]
_rc_combat_rocks_
Neocortex
Lance Corporal
Posts: 14
Joined: Sat Dec 18, 2004 8:37 pm
Contact:

Post by Neocortex »

have u got winrar? just right click on it, open, then a menu comes, click on "i want to choose from a list" or something, then choose winrar, if you have winrar. If you have paksapce, just open it with pakscape. You can go to the tutorials of this site and download pakscape. Pakscape is easier for some users, but i use winrar, more simple to me :)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

this is a very offtopic thing but how can you post with a name "Identity Theft" and be a guest? :?
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
_rc_combat_rocks_
Sergeant
Posts: 74
Joined: Fri Dec 17, 2004 11:35 pm

Post by _rc_combat_rocks_ »

Perhaps he stole the identity of an actual member.......



just kidding!



Edit:

Just noticing Neocortex (above replies) and I joined the same date. Is the number of posts why I'm a seargent and he's a private?
_rc_combat_rocks_
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

_rc_combat_rocks_ wrote:Just noticing Neocortex (above replies) and I joined the same date. Is the number of posts why I'm a seargent and he's a private?
Yes sir!
Image
_rc_combat_rocks_
Sergeant
Posts: 74
Joined: Fri Dec 17, 2004 11:35 pm

Post by _rc_combat_rocks_ »

To bad you can't make seargent after 8 days in the real US Army! ;o)
_rc_combat_rocks_
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

you can,hope that everyone above u in rank dies in the battlefield :lol:
Image
_rc_combat_rocks_
Sergeant
Posts: 74
Joined: Fri Dec 17, 2004 11:35 pm

Post by _rc_combat_rocks_ »

Well, getting back to the subject of the thread,

Neocortex wrote:
"have u got winrar? just right click on it, open, then a menu comes, click on "i want to choose from a list" or something, then choose winrar, if you have winrar. If you have paksapce, just open it with pakscape. You can go to the tutorials of this site and download pakscape. Pakscape is easier for some users, but i use winrar, more simple to me"

I d/l'ed PakScape from Fileplanet, and When I try to open any *.pk3, such as "pak0.pk3", nothing shows up in the program.
_rc_combat_rocks_
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

Green Beret wrote:you can,hope that everyone above u in rank dies in the battlefield :lol:
yeah, thats an easy way :P
everyone except for you*private* and the general are dead and theres an attack and he goes down.. lol talk about a one man army :P :P :p
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

_rc_combat_rocks_ wrote:Well, getting back to the subject of the thread,

Neocortex wrote:
"have u got winrar? just right click on it, open, then a menu comes, click on "i want to choose from a list" or something, then choose winrar, if you have winrar. If you have paksapce, just open it with pakscape. You can go to the tutorials of this site and download pakscape. Pakscape is easier for some users, but i use winrar, more simple to me"

I d/l'ed PakScape from Fileplanet, and When I try to open any *.pk3, such as "pak0.pk3", nothing shows up in the program.
just select it as the open with: program. pak0 has all the cool stuff like models and .tik files (my favvy pak)
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

isnt there a way to activate a trigger using a gun.
as in shooting it to trigger it?
Image
Post Reply