Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Weapon Grant + Removal Bug
Re: Weapon Grant + Removal Bug [message #455577 is a reply to message #455411] Wed, 21 September 2011 19:18 Go to previous messageGo to previous message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma:
Colonel
Ok lets say I attach a script to a player. The script hooks the on kill event.

I place this code in the on join event:
Commands->Clear_Weapons(PLayerOBject);
Commands->Give_PowerUp(PLayerOBject, "POW_Pistol_Player", false);
Commands->Give_PowerUp(PLayerOBject, "CnC_POW_Ammo_ClipMax", false);
Commands->Select_Weapon(PLayerOBject, "Weapon_Pistol_Player");


and on the on kill event:
this code (or simular)
Commands->Clear_Weapons(Killer);
Commands->Give_PowerUp(Killer, "POW_AutoRifle_Player", false);
Commands->Give_PowerUp(Killer, "CnC_POW_Ammo_ClipMax", false);
Commands->Select_Weapon(Killer, "Weapon_AutoRifle_Player");
Create_2D_WAV_Sound_Player(Killer, "m00pwar_aqob0004i1evag_snd.wav");


The Pistol and the C4 Do not clear.
Half the time you cannot select ANY weapon from your inventory.
!00% of the time the Icon.. the one that tells you what gun you have selected (via bottom right of your screen) Stays the last weapon you had before that code above.


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*

[Updated on: Wed, 21 September 2011 19:18]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TTFS folder?
Next Topic: Missing Textures ingame, which are present in LE
Goto Forum:
  


Current Time: Sun Jul 14 11:35:45 MST 2024

Total time taken to generate the page: 0.00680 seconds