Spawning stuff without scripts [sd333221]

Posts 16–21 of 21 · Page 2 of 2
No idea how to use this, I tried to compile that in VB c++, but there were errors.
Any ideas?
Whats VB C++? Google Microsoft Visual C++ Express or Dev C++ Compiler
Quote Originally Posted by dtrain07 View Post
Whats VB C++? Google Microsoft Visual C++ Express or Dev C++ Compiler
Microsoft Visual c++ 2010 express, just a c++ compiler
Quote Originally Posted by mrsohail View Post
Just a proof of concept atm (offsets are for 96836). It works online however and completely bypasses any battle-eye check and can therefore be remotely executed without modifying arma at all:
Code:
Code:
	typedef unsigned int (__thiscall *f_getWeaponClassFromName)(unsigned int dwThis, const char * cName);
	typedef void(__thiscall *f_addWeapon)(unsigned int dwEntInventoryManager, unsigned int ent, unsigned int weaponClass, unsigned int reserved1, unsigned int reserved2);
	unsigned int locplayer = *(*(*reinterpret_cast<unsigned int***>(ARMA_ENT_PTR)+0x13a4/4)+0x4/4);
	f_getWeaponClassFromName getWeaponClassFromName = reinterpret_cast<f_getWeaponClassFromName>(0x004BD67C);
	f_addWeapon addWeapon = reinterpret_cast<f_addWeapon>(0x0065AFDF);
	unsigned int nvclass = getWeaponClassFromName(0xdddf08,"NVGoggles");
	if(nvclass) {
		unsigned int invmgr = locplayer+0x678;
		addWeapon(invmgr,locplayer,nvclass,0,0);
	}
Magazines work similar. It is working online but you have to put the stuff down and pick it up again.

If the interest is high I might think about coding a small gear spawner with teleport functionality that should be relatively safe to use.

THIS IS NOT MINE!
All of the credits go to sd333221

how do i use it?= :O
Quote Originally Posted by lolekxx View Post
how do i use it?= :O
i think you have to compile it and then run it :P I am not sure my self
Thanks so much lawl
Posts 16–21 of 21 · Page 2 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us