Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » destroy all vehicles
destroy all vehicles [message #475404] Fri, 28 September 2012 15:45 Go to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
i get a bug when i do this on player_Join

		SLNode<VehicleGameObj> *y = GameObjManager::VehicleGameObjList.Head();
		while (y)
		{
			GameObject *v = (GameObject *)x->Data();
			if (v && Is_Script_Attached(v,"KB_Vehicle") && v->As_DamageableGameObj())
			{
				Commands->Apply_Damage(v,99999,"Laser_NoBuilding",NULL);
			}
			y = y->Next();
		}


> scripts.dll!HookupAT3(void * a, void * b, void * c, void * patch_start, void * patch_end, int (void)* version_selector) Line 209 C++
scripts.dll!HookupAT3x(void * a, void * b, void * c, void * patch_start, void * patch_end, int (void)* version_selector) Line 176 + 0x1d bytes C++
scripts.dll!Find_Player(int id) Line 56 + 0x22 bytes C++
scripts.dll!Get_GameObj(int clientId) Line 106 C++
0018f88c()
scripts.dll!SSGMGameManager::PlayerJoinHook(int PlayerID, const char * PlayerName) Line 882 C++


this is the stack, for those who understand something about that

PS: the debug points to the return of the last function


Owner of kambot TT server

kambot.freeforums.org

[Updated on: Fri, 28 September 2012 15:45]

Report message to a moderator

Re: destroy all vehicles [message #475512 is a reply to message #475404] Mon, 01 October 2012 05:59 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
found it myself thnx anyway

Owner of kambot TT server

kambot.freeforums.org
Re: destroy all vehicles [message #475534 is a reply to message #475404] Mon, 01 October 2012 19:08 Go to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
your welcome lol.

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Previous Topic: hooking reload
Next Topic: Issue with inline assembler DLL function call
Goto Forum:
  


Current Time: Sun Dec 22 10:53:53 MST 2024

Total time taken to generate the page: 0.00702 seconds