I am trying to make a gun system in my game, that is extremely mod friendly. To do this, I plan to access a text file via the AJAX plugin, and then have the text in the file effect the properties of the gun.
For example you could put "BulletBounceFalse,CanAimTrue,ShootPhysicsObjFalse" Ect. (I Hope that made since)
I have already made a functioning prototype, that works pretty well. But I have ran into a problem that I cannot find a solution for. Pretty much I would like you to be able to put (for example) "Damage10,Accuracy5,Kick7" Ect. I simply cannot find anyway to convert text into a number. I do not know if this is even possible in C2, and I would appreciate any help the anyone could provide.