Playerweapon?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Playerweapon?

Post by Bjarne BZR »

Im dedicating an office room to every FFisON clan member in the next version of Vemork factory and as some members have specialised in certain weapons... I thought I would put that weapon in their rooms...

BUT ( here comes the question ) if i put a playerwaepon->axis->Kar98-sniper ( just an example ) in the map, will that be usable in game then? I don't want it to be... I just want it as a "plugged replica" on the wall or possibly just void of ammo... ( usable without ammo is more logical, now that I think of it... thats what I want ).
Admin .MAP Forums
Image
Head above heels.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Argh! I made a test... by default its a respawning sniper rifle with 10*5 rounds of ammo! I want it not to respawn and have no ammo! :cry:

Gebe mir dekkung! Unter beschoss, ich brauche hilfe! :wink:

Must I script this or can I control it by mapping parameters?
Admin .MAP Forums
Image
Head above heels.
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

prob can do it in scrtiping but not sure how 2,

u'd be best off just adding the files into the static directory (but not the tik) :D
hope this helps, prob not cos it's all foreign 2 me :-/
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

You could try using a script model.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes script_model will do the job :D
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Making it a script_model will make it "inert"?
But I want it to be non-respawning and void of ammo... :cry:
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

In that case, use the playerweapon and set these keys / values:

ammo_in_clip / 0
cnt / 1

You will be able to pickup the weapon, but it has no ammo and it won't respawn.
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

U rock jv!

( I'll flame U later if it doesent work :wink: )

The cnt variable.... is that 'count'? So if I'll set 2 it will respawn once?
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yup. I hope. Or I'll be flamed I guess :o
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

1/2 flame!

Respawn disabling with cnt 1 works as expected, but the ammo_in_clip 0 is ignored :cry:
Do you just know this stuff or do you read it somewhere jv?
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It's in g_allclasses.html that ships with Radiant.

But appearently not all information is correct :(
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

startammo 0
dmstartammo 0
ammo_in_clip 0

...none of them work... :cry:
Admin .MAP Forums
Image
Head above heels.
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

Bjarne BZR wrote:Gebe mir dekkung! Unter beschoss, ich brauche hilfe!
Is this Swedish? It's almost the same as German ("Gebt mir Deckung! Unter Beschu?, ich brauche Hilfe!")
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Nope, that what I thoght the Germans were saying... ( The texts give the english versions on the servers i play :wink: )
Admin .MAP Forums
Image
Head above heels.
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

:oops: sorry! didn't want to play teacher... I just was so surprised that this is soo similar that I quit thinking for a moment.
Post Reply