Thats So SUS!!!
Level 0 Beginner
Offline
 Australia
Posts: 4
Doineed2
|
 |
« on: March 18, 2009, 06:05:08 AM » |
|
Hi can any one help me I was coding me 10th race yesterday And i wanted to give it unlimited ammo I know how to spawn weapons and stuff But i want it so the race Doesn't need to reload the gun Can Somebody Plz Help!?
|
|
|
|
|
Logged
|
|
|
|
Narb
Level 2 Apprentice

Offline
Finland
Posts: 55
Harry Potter - WereWolf
tuss3dmyServer 84.253.215.221:21175(Warning: click connects through Steam)
|
 |
« Reply #1 on: March 26, 2009, 08:06:44 PM » |
|
Uhh if i'm right, you can't make it unlimited ammo, only 999 on max... I send an AK47 999 ammo es es_xdelayed 1.5 est_give event_var(userid) weapon_ak47;es es_xdelayed 1.5 est_SetAmmo event_var(userid) 1 999;es es_xdelayed 1.5 est_setclipammo event_var(userid) 1 999" This 1 gives an AK47 and makes it have 999 ammo 
|
|
|
|
|
Logged
|
|
|
|
|
Onslaught
|
 |
« Reply #2 on: March 30, 2009, 10:27:39 PM » |
|
Is there a way to make it so they have regular ammo, but when they get a kill, their weapon goes back to full immediately like in gungame
|
|
|
|
|
Logged
|
|
|
|
Narb
Level 2 Apprentice

Offline
Finland
Posts: 55
Harry Potter - WereWolf
tuss3dmyServer 84.253.215.221:21175(Warning: click connects through Steam)
|
 |
« Reply #3 on: March 31, 2009, 05:11:01 PM » |
|
Is there a way to make it so they have regular ammo, but when they get a kill, their weapon goes back to full immediately like in gungame
I think there is... i've seen a race like that on some wcs server... but it made it allways go to 45, even if regular clip is 30 
|
|
|
|
|
Logged
|
|
|
|
Sasuke
Level 2 Apprentice

Offline
 Germany
Posts: 42
FreeTimeCoder
|
 |
« Reply #4 on: March 31, 2009, 05:39:07 PM » |
|
Well, you have to do player_kill, and just do est_setammo (yourvariable). The variable has to be set depending on the weapon, means it always checks what weapon the player is carrying, and set the variable to the amount of ammo the current weapon can max. have.
|
|
|
|
|
Logged
|
|
|
|
|
[Oddity]TeacherCreature
|
 |
« Reply #5 on: April 01, 2009, 03:55:37 AM » |
|
You could also upon weapon fire add ammo or like many zombie mods weapon fire and |get ammo|if ammo < 10 then add ammo
|
|
|
|
|
Logged
|
|
|
|
Stinkyfax
I <3 WCS
Watchdogs
Level 7 Expert
   
Offline
 Lithuania
Posts: 1530
 XrushiovmyServer 84.55.62.45:27016(Warning: click connects through Steam)
|
 |
« Reply #6 on: April 01, 2009, 11:29:59 AM » |
|
stay careful with exceptions. Once i tried to add ammo to "c4" it crashed server 
|
|
|
|
|
Logged
|
|
|
|
MikeHORROR
Level 0 Beginner
Online
 Belgium
Posts: 18
Cptbullet
|
 |
« Reply #7 on: April 01, 2009, 06:17:39 PM » |
|
stay careful with exceptions. Once i tried to add ammo to "c4" it crashed server  Rofl on that one. Why would you set ammo on "c4" anyways? I mean, you can maximum carry one right?
|
|
|
|
|
Logged
|
|
|
|
WCA | Rasmus [DK]
wcs coder (part of new wcs dev team)
WCS Supporter
Level 7 Expert
   
Online
 Denmark
Posts: 1404
Rasmus4Jrasmus4jmyServer 85.190.17.115:27015(Warning: click connects through Steam)
|
 |
« Reply #8 on: April 01, 2009, 07:25:20 PM » |
|
one way ( a little slower) is to just give a new weapon of the same kind  it will automatically have full ammo. but unlimited ammo is possible, jsut not as we would like it too 
|
|
|
|
|
Logged
|
where would you put the comma in the following telegram from a wife, to her husband in the navy? "Not getting any better hurry home!"
|
|
|
Stinkyfax
I <3 WCS
Watchdogs
Level 7 Expert
   
Offline
 Lithuania
Posts: 1530
 XrushiovmyServer 84.55.62.45:27016(Warning: click connects through Steam)
|
 |
« Reply #9 on: April 01, 2009, 10:35:53 PM » |
|
one way ( a little slower) is to just give a new weapon of the same kind  it will automatically have full ammo. but unlimited ammo is possible, jsut not as we would like it too  i do have unlimited ammo during boss event. Not that hard thing, about c4.. As i said work out the exceptions, i did not want c4 to be unlimited.
|
|
|
|
|
Logged
|
|
|
|
WCA | Rasmus [DK]
wcs coder (part of new wcs dev team)
WCS Supporter
Level 7 Expert
   
Online
 Denmark
Posts: 1404
Rasmus4Jrasmus4jmyServer 85.190.17.115:27015(Warning: click connects through Steam)
|
 |
« Reply #10 on: Today at 01:49:08 PM » |
|
well, i do know that your's sourcepwn , so maybe you have some different commands and possibilities than in ess or esp 
|
|
|
|
|
Logged
|
where would you put the comma in the following telegram from a wife, to her husband in the navy? "Not getting any better hurry home!"
|
|
|
Stinkyfax
I <3 WCS
Watchdogs
Level 7 Expert
   
Offline
 Lithuania
Posts: 1530
 XrushiovmyServer 84.55.62.45:27016(Warning: click connects through Steam)
|
 |
« Reply #11 on: Today at 04:32:33 PM » |
|
well, i do know that your's sourcepwn , so maybe you have some different commands and possibilities than in ess or esp  you just get entity id of weapon and modify it's ammo. very simple..
|
|
|
|
|
Logged
|
|
|
|
|