Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2009-04-02 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
April 02, 2009, 05:16:15 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as... HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Unlimited ammo  (Read 100 times)
Thats So SUS!!!
Level 0 Beginner

Offline Offline

Australia 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 Offline

Finland

Posts: 55


Harry Potter - WereWolf



tuss3d

myServer 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
Code:
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  Shocked
Logged

Onslaught
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 285


WWW.SNK-KLAN.NET


WWW
breezefesty
onslaught87
« 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

(click to show/hide)

         
Narb
Level 2 Apprentice
**
Offline Offline

Finland

Posts: 55


Harry Potter - WereWolf



tuss3d

myServer 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  Tongue
Logged

Sasuke
Level 2 Apprentice
**
Offline Offline

Germany 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
Watchdogs
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 1120



WWW
bonggged

myServer 208.167.227.103:27015
(Warning: click connects through Steam)
« 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 Offline

Lithuania Lithuania

Posts: 1530



WWW
Xrushiov

myServer 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  Wink
Logged

MikeHORROR
Level 0 Beginner

Online Online

Belgium 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  Wink

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 Online

Denmark Denmark

Posts: 1404




Rasmus4J
rasmus4j

myServer 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 Tongue it will automatically have full ammo.
but unlimited ammo is possible, jsut not as we would like it too Tongue
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 Offline

Lithuania Lithuania

Posts: 1530



WWW
Xrushiov

myServer 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 Tongue it will automatically have full ammo.
but unlimited ammo is possible, jsut not as we would like it too Tongue
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 Online

Denmark Denmark

Posts: 1404




Rasmus4J
rasmus4j

myServer 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 Tongue
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 Offline

Lithuania Lithuania

Posts: 1530



WWW
Xrushiov

myServer 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 Tongue
you just get entity id of weapon and modify it's ammo. very simple..
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 04:59:34 PM
dunno what to think...
Today at 04:57:32 PM
i dont believe its perm ban..
Today at 04:27:47 PM
malus..banned Sad forgive me...
Today at 04:23:50 PM
i wont do it again i promise Sad
Today at 04:22:37 PM
yes...Warcraft-Source.com | v0.77 | FastDL | 90+ Races | Server
Today at 04:22:11 PM
r u sure its one of the official servers?
Today at 04:16:21 PM
My steam was STEAM UserID STEAM_0:1:21818146                 and name Ug.Man....pls....
Recent
[Today at 04:51:53 PM]

[Today at 04:32:33 PM]

[Today at 04:22:32 PM]

by Narb
[Today at 03:19:49 PM]

by Narb
[Today at 01:20:56 PM]

by Narb
[Today at 01:17:35 PM]

[Today at 12:53:44 PM]

[Today at 12:49:55 PM]

[Today at 12:47:27 PM]

[Today at 11:52:54 AM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.056 seconds with 27 queries.