ItsMods
[Tutorial] Riot Shield - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: [Tutorial] Riot Shield (/Thread-Tutorial-Riot-Shield.html)

Pages: 1 2


Riot Shield - Yamato - 10-21-2011

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


RE: Riot Shield - alvarogt95 - 10-22-2011

Lol Nice found Smile


RE: Riot Shield - alvarogt95 - 10-27-2011

a wanna see a screenshot Big GrinBig GrinBig Grin


RE: Riot Shield - GscGunner - 01-19-2012

is it possible to make a riot shield sping around correctly without lag or crashes?


RE: Riot Shield - ScHmIdTy56789 - 01-20-2012

(01-19-2012, 08:46)GscGunner Wrote: is it possible to make a riot shield sping around correctly without lag or crashes?

what?


RE: Riot Shield - GscGunner - 01-20-2012

just, that it keeps spinning around you lol
like a dumb upgrade when you buy something for zombie mod
just a vague idea lol


RE: Riot Shield - ScHmIdTy56789 - 01-24-2012

(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!


RE: Riot Shield - GscGunner - 01-25-2012

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


RE: Riot Shield - GscGunner - 01-30-2012

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


RE: Riot Shield - ScHmIdTy56789 - 01-31-2012

(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