![]() ![]() ![]() InAir() //executed every frame while bullet is in air OnFire(int ID,float Angle,float Power) //ID-id of firng hedge #Openlierox gun maker how to#īecause I'm a kind of person that likes telling everyone what and how to do I'll write an example(sorry, I can't hold on.): why? Because it would allow everyone to easily add new weapons without knowledge of programing. Int animframes //Number of frames for animation (OR artenatively it could be X and Y velocities instead of Angle and Velocity) OnHit(float Velocity, float Angle) //Velocity - how fast object was flying when it hit, Angle - angle of object when it hit. ![]() String HedgedogAnim //File to look for Hedgedog animation while holding this weapon Weapon-only specific variables(only for the object that is the selectable weapon from menu):īool settimer //If timer can be modified by player by pressing 1-5įloat MinAngle,MaxAngle //Min and max aiming angleįloat MinPower,MaxPower //If MinPower >= MaxPower then power is constant and equal MinPowerīool Aimer //If it have got visible aimer These would be function for every object that can be created, there also would be few variables like:įloat gravity // how much gravity alters its pathįloat Bounciness //Bounciness for physics engineįloat friction //For objects like grenades, etc. Int hedgeanimframes // Number of animation frames for hedgedog animation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |