Sourcemod Resources: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 132: | Line 132: | ||
==Tools== | ==Tools== | ||
===Theowningone's Empires API=== | ===Theowningone's Empires API=== | ||
A very useful set of functions to simplify the creation of sourcemod plugins for empires. It can be download from [[http://forums.alliedmods.net/showthread.php?p=690965 Sourcemod.net]]. | A very useful set of functions to simplify the creation of sourcemod plugins for empires. It can be download from [[http://forums.alliedmods.net/showthread.php?p=690965 Sourcemod.net]] or [[http://www.theowningone.info/empires.inc Theowningone.info]]. | ||
/* | /* | ||
* Empires API | * Empires API |
Revision as of 01:23, 9 November 2008
Home > Sourcemod Resources
Empires 2.12 Indexes
Vehicles
//These values are returned by the m_iChassis offset of the netclass CEmpTank //Found By Theowningone 0 "NF Jeep" 1 "NF APC" 2 "NF Light Tank" 3 "NF Med Tank" 4 "NF Heavy Tank" 5 "NF Arty Tank" 6 "Imperial Jeep" 7 "Imperial APC" 8 "Imperial AFV" 9 "Imperial Med Tank" 10 "Imperial Heavy Tank" 11 "Imperial Arty Tank" 12 "Imperial Commander" 13 "NF Commander"
Vehicle Weapons
//These values are returned by the m_iWeapon offset of the netclass CEmpTankTurret //Found By Theowningone 0 "Standard Machine Gun" 1 "Bio Machine Gun" 2 ".50 Caliber Medium Machine Gun" 3 ".50 Caliber Heavy Machine Gun" 4 "Anti-Tank Machine Gun" 5 "Anti-Tank Heavy Machine Gun" 6 "Chain Gun" 7 "Medium Chain Gun" 8 "Plasma Machine Gun" 9 "HE MG" 10 "Standard Cannon" 11 "Ranged Cannon" 12 "High Explosive Cannon" 13 "Plasma Cannon" 14 "Rail Gun" 15 "smallArtilleryCannon" 16 "medArtilleryCannon" 17 "High Explosive Artillery" 18 "Ranged Artillery Cannon" 19 "singleMissileLauncher" 20 "Upgraded Missile Launcher" 21 "Biological Warhead" 22 "Nuclear Warhead" 23 "salvoMissileLauncher" 24 "guidedMissileLauncher" 25 "Upgraded Guided ML" 26 "homingMissileLauncher" 27 "Upgraded Homing Missile Launcher" 28 "salvoHomingMissileLauncher" 29 "grenadeLauncher" 30 "Upgraded Grenade Launcher" 31 "smallBombBay" 32 "largeBombBay"
Research
//These values are returned by the Multiple Offsets of the netclass CResearchResource //Found By Theowningone 1 "Physics" 2 "Superheated Material Physics" 3 "Plasma Cannon Projectile" 4 "Plasma Bullet Projectile" 5 "Projectile Physics" 6 "Reflective Armor" 7 "Extended Range Cannon" 8 "Heavy Caliber Machine Gun" 9 "Nuclear Fission" 10 "Fission Reactor" 11 "Nuclear Warhead" 12 "Chemistry" 13 "Improved Flagration Compounds" 14 "Explosive Tipped Bullets" 15 "Improved Detonation Compounds" 16 "Upgraded Grenades" 17 "Explosive Shells" 18 "Improved Warhead Compounds" 19 "Upgraded Missile Warhead" 20 "Upgraded Grenadier RPG" 21 "Advanced Grenadier RPG" 22 "Improved Heat Transfer Fluids" 23 "Advanced Coolant Engine" 24 "Absorbant Materials" 25 "Absorbant Armor" 26 "Mechanical Engineering" 27 "Upgraded Chassis" 28 "Medium Tank Chassis" 29 "Advanced Chassis" 30 "Heavy Tank Chassis" 31 "Artillery Tank Chassis" 32 "Advanced Machining" 33 "Composite Armor" 34 "Gas Turbine Engine" 35 "Electrical Engineering" 36 "Advanced Magnet Research" 37 "Rail Gun" 38 "3 Phase Electric Motor" 39 "Reactive Armor" 40 "Tracking Systems" 41 "Homing Missiles" 42 "Guided Missiles" 43 "Upgraded Turrets Lvl 2" 44 "Upgraded Turrets Lvl 3" 45 "Improved Detonators" 46 "Biology" 47 "Regenerative Armor" 48 "Bio Diesel Engine" 49 "Biological Weaponry" 50 "Biological Warhead" 51 "Biological Projectile"
Vehicle Armor
//These values are found in Multiple Offsets of the netclass CEmpTank //Found By Theowningone offset+0 "Front" offset+4 "Back" offset+8 "Left" offset+12 "Right"
Player Classes
//These values are found in m_iEmpClass of the netclass CSDKPlayer //Found By Theowningone 0 "Scout" 1 "Rifleman" 2 "Grenadier" 3 "Engineer" 4 "Unknown(Never Appears)" 5 "None/Spectator"
Tools
Theowningone's Empires API
A very useful set of functions to simplify the creation of sourcemod plugins for empires. It can be download from [Sourcemod.net] or [Theowningone.info].
/* * Empires API * * Created By Theowningone * Version: 1.1 * http://www.theowningone.info/ * http://www.borgamers.com/ */ /******************** * --> Is Stocks <-- * ********************/ /** * Is Player Squad Leader * * @param client Client Index * @return 1 if leader, 0 if other */ stock IsSquadLeader(client) /** * Is Player Commander * * @param client Client Index * @return 1 if comm, 0 if other */ stock IsComm(client) /** * Is Player In Vehicle * * @param client Client Index * @return 1 if in vehicle, 0 if not */ stock IsInVehicle(client) /********************** * --> Team Stocks <-- * **********************/ /** * Retrieves NF Resources. * * @return NF Resources */ stock GetNFResources()
/** * Sets NF Resources. * * @noreturn */ stock SetNFResources(amount) /** * Retrieves BE Resources. * * @return BE Resources */ stock GetBEResources() /** * Sets BE Resources. * * @noreturn */ stock SetBEResources(amount)
/** * Retrieves NF Reinforcements * * @return NF Reinforcements */ stock GetNFReinforcements() /** * Sets NF Reinforcements * * @noreturn */ stock SetNFReinforcements(amount) /** * Retrieves BE Reinforcements * * @return BE Reinforcements */ stock GetBEReinforcements() /** * Sets BE Reinforcements * * @noreturn */ stock SetBEReinforcements(amount) /** * Is Researched * * @param team Team Index * @param index Research Index * @return 1 if researched, 0 if not */ stock IsResearched(team, index) /** * Current Research * * @param team Team Index * @return Research Index */ stock CurrentResearch(team) /** * Current Research Name * * @param team Team Index * @param buffer Buffer to hold the research name * @param size Len of the buffer * @return Research Index */ stock CurrentResearchName(team, String:buffer[], size) /** * Set Research * * @param team Team Index * @param index Research Index * @param status weather to research or not * @noreturn */ stock SetResearch(team, index, bool:status) /************************* * --> Vehicle Stocks <-- * *************************/ /** * Get Vehicle Occupants * * @param ent Vehicle Entity Index * @return Amount of clients in vehicle */ stock GetVehicleOccupants(ent)
/** * Get Vehicle Driver * * @param ent Vehicle Entity Index * @return Client Index of Driver (0 if none, -1 if invalid entity) */ stock GetVehicleDriver(ent) /** * Set Vehicle Armor * * @param ent Vehicle Entity Index * @param side side of armor (1 is front, 2 is back, 3 is left, 4 is right) * @param front Health to set armor to * @return -1 on error, 0 on success */ stock SetVehicleArmor(ent, side, Float:health) /** * Get Vehicle Armor * * @param ent Vehicle Entity Index * @param side side of armor (1 is front, 2 is back, 3 is left, 4 is right) * @return Armor Health (-1.0 on error) */ stock Float:GetVehicleArmor(ent, side) /** * Set Vehicle Hull * * @param ent Vehicle Entity Index * @param health Health to set hull to * @return -1 on error, 0 on success */ stock SetVehicleHull(ent, Float:health)
/** * Get Vehicle Hull * * @param ent Vehicle Entity Index * @return Hull Health (-1.0 on error) */ stock Float:GetVehicleHull(ent) /** * Set Vehicle Heat * * @param ent Vehicle Entity Index * @param heat Heat to set for vehicle * @return -1 on error, 0 on success */ stock SetVehicleHeat(ent, Float:heat)
/** * Get Vehicle Heat * * @param ent Vehicle Entity Index * @return Vehicle Heat (-1.0 on error) */ stock Float:GetVehicleHeat(ent) /** * Get Vehicle Class * * @param ent Vehicle Entity Index * @return Vehicle Class (-1 on error) */ stock GetVehicleClass(ent)
/** * Get Vehicle Class Name * * @param ent Vehicle Entity Index * @param buffer Buffer to hold the vehicle class name * @param size Len of the buffer * @return Vehicle Class (-1 on error) */ stock GetVehicleClassName(ent, String:buffer[], size) /** * Get Client Vehicle * * @param client Client Index * @return Client Vehicle Entity Index (-1 is error, 0 is none) */ stock GetPlayerVehicle(client) /** * Get Cannon Entity * * @param ent Vehicle Entity Index * @return Cannon Entity Index */ stock GetCannonEnt(ent) /** * Get Turret Entity * * @param ent Vehicle Entity Index * @return Turret Entity Index */ stock GetTurretEnt(ent) /********************** * --> Misc Stocks <-- * **********************/ /** * Retrieves a player's squad number * * @param client Client Index * @return Player squad index (0 is none) */ stock GetPlayerSquadNum(client) /** * Retrieves a player's squad name * * @param client Client Index * @param buffer Buffer to hold the squad name * @param size Len of the buffer * @return Player squad index */ stock GetPlayerSquadName(client, String:buffer[], size) /** * Retrieves a player's score * * @param client Client Index * @return Player score */ stock GetPlayerScore(client) /** * Retrieves a player's class * * @param client Client Index * @return Player class (0 is scout, 1 is rifleman, 2 is gren, 3 is engy, 5 is spec) */ stock GetPlayerClassNum(client) /** * Retrieves a player's class * * @param client Client Index * @param buffer Buffer to hold the class name * @param size Len of the buffer * @return Player class index */ stock GetPlayerClassName(client, String:buffer[], size)