01-24-2011, 16:45
(This post was last modified: 01-24-2011, 16:46 by dddddddddddddddddddddddddddddd.)
Code:
/*
_ _ _
(_) | | |
_| |_ ___ _ __ ___ ___ __| |___ ___ ___ _ __ ___
| | __/ __| '_ ` _ \ / _ \ / _` / __| / __/ _ \| '_ ` _ \
| | |_\__ \ | | | | | (_) | (_| \__ \| (_| (_) | | | | | |
|_|\__|___/_| |_| |_|\___/ \__,_|___(_)___\___/|_| |_| |_|
Copyleft(c) 2011 ddddddddddddddddddddddddddddd
made for SuperNovaAO
Special thanks to TheAdmin
*/
// BaseEntity.h
CBaseEntity = GetLifeformEntity( "BASE_LIFE_ENTITY008", "lifeforms.dll" );
// Water.h
#include "BaseEntity.h"
CBaseEntity WaterEnt = DeriveEntFromBase( "ent_water" );
struct WaterStruct
{
atom Oxygen;
atom *Hydrogen;
};
// CD.h
#include "BaseEntity.h"
CBaseEntity DiscEnt = DeriveEntFromBase( "ent_compactdisc" );
struct CompactDisc
{
layer Polycarbonate;
layer ShinyLayer;
layer *Lacquer;
};
// DLLMain.cpp
#include "Water.h"
#include "CD.h"
void __stdcall ApplyWaterToDisc( CBaseEntity WaterEnt, float WaterQuantity, CBaseEntity DiscEnt )
{
return DiscEnt->ApplySubstance( WaterEnt, reinterpret_cast<*cubic_meters>( WaterQuantity ) );
}
u have to reverse life.exe to get the offets n shit
polease note that this data currently underwrites data permanently
please note that my moms coffee mug in the background is a bug and is unwanted in the final edition its there cuys i wanted a big hot chocolate and my mugs r small
demonstration of the final production::[/b][/b]
LO!L!!!!!!!!!