ItsMods

Full Version: Riot Shield
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello, OMA

Nyan Cat This is a tutorial about riot shield commands, OMA . There are 3:

The first is one for attaching a riot shield:

Code:
self AttachShieldModel("weapon_riot_shield_mp","tag_weapon_left");
self AttachShieldModel("weapon_riot_shield_mp","tag_shield_back");

You can put in the tag whatever you want, I put those in the example because they are the tags that riot uses in game. OMA And in the model, I suppose you can change it, but I havent tried, Smile

It also exists this command to detach it, Nyan Cat :

Code:
self DetachShieldModel("weapon_riot_shield_mp","tag_weapon_left");
self DetachShieldModel("weapon_riot_shield_mp","tag_shield_back");

Works in same way as attaching. OMA

And the last command is what the game uses to switch gun when you have riot. OMA
Code:
self MoveShieldModel("weapon_riot_shield_mp",first tag,second tag); //it will change the riot position from the first tag to second tag

Example, Nyan Cat :

Code:
self MoveShieldModel("weapon_riot_shield_mp","tag_shield_back","tag_weapon_left");

Some info:

Code:
Riot Shield Weapon name = "riotshield_mp"
Riot Shield Model name = "weapon_riot_shield_mp"
Riot Shield Perk(will attach a riotshield at back) = "specialty_shield"

I also found a command in _damage.gsc, I havent tested it but I am sure that works like this:

Code:
self StunPlayer(time);

Example:

Code:
self StunPlayer(5);

Credits: @4FunPlayin for testing a thing

Thats it, OMA
Lol Nice found Smile
a wanna see a screenshot Big GrinBig GrinBig Grin
is it possible to make a riot shield sping around correctly without lag or crashes?
(01-19-2012, 08:46)GscGunner Wrote: [ -> ]is it possible to make a riot shield sping around correctly without lag or crashes?

what?
just, that it keeps spinning around you lol
like a dumb upgrade when you buy something for zombie mod
just a vague idea lol
(01-20-2012, 14:47)GscGunner Wrote: [ -> ]just, that it keeps spinning around you lol

Code:
doHax()
{
    RS = Spawn("script_model",(0,0,0));
    RS SetModel("weapon_riot_shield_mp");
    
    while(1)
    {
        pelvis = self GetTagOrigin("pelvis");
        RS MoveTo(pelvis,0.08);
        RS RotateTo((RandomInt(360),RandomInt(360),RandomInt(360)),0.08);
        wait 0.08;
    }
}

Fuck yea!
cool, i'll test it later cant now
thnx for giving lol, didnt expect somebody would make it,
it would be funny for a few games i guess
hmmm, well you created a riot shield under the solider. and it does weard moves, it doesnt spin around you Sad
it just do crazy stuff under you, like backflip frontflip spinning

Sad
(01-30-2012, 10:11)GscGunner Wrote: [ -> ]hmmm, well you created a riot shield under the solider. and it does weard moves, it doesnt spin around you Sad
it just do crazy stuff under you, like backflip frontflip spinning

Sad

Ill work on it more to satisfy your leech needs
Pages: 1 2