IPB

Welcome Guest ( Log In | Register )


 
Reply to this topicStart new topic
> How to give civilian hosp and armory infinite ammo?
Blackhand Comman...
post Aug 28 2010, 05:22 PM
Post #1


Hum-vee
Group Icon

Group: Members
Posts: 172
Joined: 17-March 09
From: Hungary
Member No.: 1,533
Favorite game: Tiberian Sun



Ok so in my mod the Civilian Armory and Hosp will be captureable, modded etc but as we all know these structures use ammo to specify the max number of upgrades/heals. I modded it to something like
99999999999999999999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999
which is virtually infinite, but i want to make it somehow less... crappy.

so if anyone knows how to pls share me the information ninja.gif


--------------------
The Brotherhood of Nod will rise agin...
BTW I have a nice voxel for ya: Unused Tank Destroyer
Go to the top of the page
 
: | +Quote Post
Devastator
post Aug 28 2010, 09:14 PM
Post #2


Commando
Group Icon

Group: Members
Posts: 543
Joined: 20-February 10
From: The United States
Member No.: 1,799
Alliance: GDI
Favorite game: Tiberian Sun



A simple way without lots of work, is just to simply lower your number to something 99999. That's the first way I solved this. I mean it isn't likely you will build 100,000 infantry. Besides, some things only go so high. When I messed around with the strength key, I had it up to 20000000. (Twenty-Million)

Then I raised it to 999999999999999999. (999,999,999,999,999,999) The unit died in one hit because it was too high.


--------------------
Go to the top of the page
 
: | +Quote Post
Rampastring
post Aug 29 2010, 08:03 AM
Post #3


Tick Tank
Group Icon

Group: Members
Posts: 690
Joined: 4-June 07
From: Finland
Member No.: 957
Alliance: Nod
Favorite game: Tiberian Sun



QUOTE (Ionizer @ Aug 29 2010, 12:14 AM) *
Then I raised it to 999999999999999999. (999,999,999,999,999,999) The unit died in one hit because it was too high.

http://www.tiberiumweb.com/forums/index.php?showtopic=2573

QUOTE (CCHyper)
Integer:

A integer value is a solid number like 1, or 7 and does not use decimal points. according to pd, the game uses the range (non signed) −32768 to 32767, where as signed integers use -2147483648 to 2147483647.

So the maximum is either 32767 or 2147483647. Some info there is invalid though, as said by Infinity. The real maximum for a non-signed short int is 65,535, while the maximum for a non-signed normal int is 4,294,967,295. ( http://en.wikipedia.org/wiki/Integer_%28co...gral_data_types )

This post has been edited by ^Rampastein: Aug 29 2010, 08:05 AM


--------------------
Go to the top of the page
 
: | +Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 28th March 2024 - 03:43 PM


XGhozt.com