Projectile life and weapon starting ammo

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Projectile life and weapon starting ammo

Post by Rookie One.pl »

Hi,

I need to set projectile's life to, let's say 10 seconds and give a player a weapon that has a starting ammo amount of 1, and I'm desperate on doing this without modifying any TIKIs, but by pure scripting... I tried spawning a trigger with spawnflags 20 and running life 10 and dmlife 10 commands on parm.other, but it just doesn't work... :? Neither does work executing startammo 1 nor dmstartammo 1 on a weapon... Any ideas how to do this without touching the TIKIs? Help, please, I'm desperate!!! :cry: :cry: :cry:

Cheers,

Rookie One
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

About the life, there was also something like that with the grenades in MP, I could get it worked doing:

life x (use this one even for MP)
//dmlife x (disable this one)

hope that would help :wink:
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Nah, it doesn't work, Atomic... :cry:
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

if u exec a script form projectile and do
main:
wait 10
self explode
end

sud work.

self = the projectile . but its a projectile class remember. not a script mdl., - most script wont work with it
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

But what if the projectile life in the TIK is set to, let's say, 3? I just want to make grenades explode after a longer period... I know it's a projectile class, I've been trying to find something in the SDK but I can't seem to get these commands working... However, things like applying more gravity or making it drunk work just fine... :?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

doesnt changing the life work?

u want cg_allclasses for tiki and client stuff.

and in game classes just look at the projectile part
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

I did look in the game classes! And the life command doesn't work! Try it yourself!
Elgan wrote:u want cg_allclasses for tiki and client stuff.
What do you mean?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

type cl_dumpallclasses
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Elgan wrote:type cl_dumpallclasses
I can't see the connection between client module classes and a projectile... :?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

they are tiki cmds..just thought u might wanna look at tiki stuff.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

cl_dumpallclasses
thought this said cl_dumbasses for a minute :lol:

g_allclasses would work fine right? isnt that created via cl_dumpallclasses?
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

no they are different things

game classes and client classes.
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

WTF I've got the classes file... I just don't get why the hell the life command doesn't work!!! :evil: Anyone?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply