| Blockland Forums > Modification Help |
| Weapon Disguise, excluding local client |
| << < (2/4) > >> |
| Bauklotz:
Well, basically like this: There are 5 players on the server. Player 1 has a 'Guns Akimbo' weapon in his hands Player 1 uses the disguise thing with argument 'Bow' Player 1 including everybody else now see the weapon in his hands as a Bow Player 1 shoots the weapon -> It turns into a Guns Akimbo -> It fires (like it would originally do) Actually I think I found a solution. Would something like this work? --- Code: ---function disguise(%playerobj,%image) { %playerobj.disguised_image = player.getMountedImage(0); %playerobj.hasImageDisguise = true; %playerobj.mountImage(%image,0); } package SOMETHING { function Armor::onTrigger(%bacon,%ham,%milk,%cheese,%and,%other,%args) { if(%val && %slot == 0 && %obj.hasImageDisguise) %playerobj.mountImage(%obj.disguised_image,0); Parent::onTrigger(%meat,%water,%salad,%and,%spam); } }; activatePackage(SOMETHING); --- End code --- |
| Nymethus:
Lame |
| Bauklotz:
Well, I'm basically making it for the 'Disguise Kit' item for Spy for Gamemode_BlockBastion2. |
| Space Guy:
What may be possible is something like how the cloaking watches work: You can see it in first person by setting the eyeOffset to something and the normal offset to "0 0 -10000", then make another third-person image that does nothing with the two swapped, mount them both. I don't know how it'd work with firing sequences though and you'd need an invisible copy of every weapon you plan the disguise kit's holder to have. |
| TheArmyGuy:
Nope. Wepon with 2 different models. Nay. |
| Navigation |
| Message Index |
| Next page |
| Previous page |