Page 1 of 1

Paratrooper's Semi-AWPtomatic

Posted: Sun Jun 05, 2016 7:22 am
by Paratrooper
A Rifle mod for OpenSpades.
promo.png
promo.png (158.54 KiB) Viewed 7656 times
Video (click the link to the video for 60fps):
Images (click to expand):
Spoiler:
idle.jpg
idle.jpg (205.26 KiB) Viewed 7656 times
aiming.jpg
aiming.jpg (203.2 KiB) Viewed 7656 times
reloading-1.jpg
reloading-1.jpg (244.04 KiB) Viewed 7656 times
reloading-2.jpg
reloading-2.jpg (223.41 KiB) Viewed 7656 times
firing.jpg
firing.jpg (212.2 KiB) Viewed 7656 times
Download Links:
Image
Gamebanana: http://gamebanana.com/skins/146422

http://gamebanana.com/skins/download/146422

..

Posted: Sun Jun 05, 2016 6:00 pm
by Holt
..

Re: Paratrooper's Semi-AWPtomatic

Posted: Mon Jun 06, 2016 4:31 am
by Priok
wow, that's one of the coolest mods I've ever seen, nice work dude. good to see you release something new

Re: Paratrooper's Semi-AWPtomatic

Posted: Thu Jun 09, 2016 6:12 am
by Chameleon
Well I expected a bolt action...
But those are damn sweet animations, man. Also I noticed different scope blur, gotta take a look at that :P

Re: Paratrooper's Semi-AWPtomatic

Posted: Sat Jun 18, 2016 4:31 pm
by Tootolz
Looks good, but would u be able to release a model with a hollow scope?

Re: Paratrooper's Semi-AWPtomatic

Posted: Sat Jun 18, 2016 5:14 pm
by Chameleon
I am not C++ guru, but why
Code: Select all
private bool isDead = true;
		
bool IsDead {
	set { isDead = value; }
	get { return isDead; }
}
a) it's private, so it doesn't need "get{} set{}"
b) "{ get; set; }" didn't crash for me, so you could try using that instead (works in C#), once it's public.
Also you could do so much better if you implemented dropped magazine feature in the source code itself. Wanna try? I can help (a little tiny bit).

For a bit better sound variation, I do
Code: Select all
AudioParam param;
param.pitch += (GetRandom()-GetRandom())*0.1f;
The recoil looks a bit weird, a bit too much rotation...

Re: Paratrooper's Semi-AWPtomatic

Posted: Mon Jun 20, 2016 4:06 am
by Paratrooper
it's private, so it doesn't need "get{} set{}"
No. It needs its own getter and setter because it's private. Think about it: What's the point of making a getter and setter for a public member when you can just reference the member itself?
Code: Select all
... In the RifleMagazineParticle class
// declares a boolean private member "isDead" and is initialized to true whenever an instance of this class is made
// I can't reference isDead in some code outside of this class because its private
private bool isDead = true;

// however, by declaring a getter and setter (notice that the "I" in "IsDead" is capitalized)
// I can freely define *how* I want this member to be accessed.
bool IsDead {
   set { isDead = value; }
   get { return isDead; }
}

... in some other source file
RifleMagazineParticle mag(...);
mag.isDead = false; // won't work, I am accessing a private member. 
mag.IsDead = false; // will work and will set isDead to false.
From AngelScript's documentation: http://www.angelcode.com/angelscript/sd ... _prop.html
Code: Select all
  class MyObj
  {
    // A virtual property with accessors
    int prop 
    { 
      get const 
      { 
        // The actual value of the property could be stored
        // somewhere else, or even computed at access time.
        return realProp; 
      } 
      set 
      { 
        // The new value is stored in a hidden parameter appropriately called 'value'.
        realProp = value; 
      }
    }

    // The actual value can be stored in a member or elsewhere.
    // It is actually possible to use the same name for the real property, if so is desired.
    private int realProp;
  }
Also you could do so much better if you implemented dropped magazine feature in the source code itself. Wanna try? I can help (a little tiny bit).
I could, but that would mean competing with your version :)
Besides, I don't want people downloading an entirely new version of OpenSpades just to try out my mods.

And that sound variation is a neat trick!

Re: Paratrooper's Semi-AWPtomatic

Posted: Fri Jun 24, 2016 8:25 pm
by StrikerJanners
Damn nice one!could you try adding Chammie's zoom script with that weapon?

Re: Paratrooper's Semi-AWPtomatic

Posted: Mon Jun 27, 2016 8:28 pm
by MadMax
Looks pretty nice, animations.. good, also looks really good the scope, good job.